|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
|||
|
|||
|
client side editing
I have a input box in flash that is posting info to a php file.
<?php //Capture data from $_POST array $news = $_POST['news']; //Make one big string in a format Flash understand $toSave = "news=".$news; //Open a file in write mode $fp = fopen("news.txt", "w"); if(fwrite($fp, $toSave)) echo "writing=Ok"; else echo "writing=Error"; fclose($fp); ?> Works like a champ, but there is one small glitch...if there is a <img src='newsPics/4X1.jpg' align='right' height='150' width='144'> in the text that is posted..it comes out like <img src='newsPics/4X1.jpg' align='right' height='150' width='144'> I am thinking that the PHP file does not like the img src for some reason....what is the coding work around for this, if any. THanks for the help guys. |
|
#2
|
|||
|
|||
|
RE: client side editing
Look up addslashes() and the magic_quotes_gpc directive.
|
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Client Side Things > client side editing |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|