SunQuest
           Client Side Things
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesClient Side Things

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old October 29th, 2004, 11:29 PM
N_R_D N_R_D is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 19 N_R_D User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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.





Reply With Quote
  #2  
Old October 31st, 2004, 11:21 AM
Yian Yian is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: UK
Posts: 279 Yian User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: client side editing

Look up addslashes() and the magic_quotes_gpc directive.

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesClient Side Things > client side editing


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway