On 13 February 2006 14:38, zedleon wrote: > I am using php as a cgi. The data from my html is piped through stdin > using this code: > <? > $fp=popen("cat","r"); > $str=fgets($fp); > print $str; > > > > The result I am getting looks like this: (which is correct) > sender_name=zedleon&sender_email=support@xxxxxxxxxxxxxx&sender > _msg=This+is+a +test&Submit=Submit > > What I need to do now is to convert the piped string into the > individual values $sender_name, $sender_email, $sender_msg. > Does anybody know a way to do this...any help is appreciated. I should think http://www.php.net/parse_str is what you're looking for. Cheers! Mike --------------------------------------------------------------------- Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning & Information Services, JG125, James Graham Building, Leeds Metropolitan University, Headingley Campus, LEEDS, LS6 3QS, United Kingdom Email: m.ford@xxxxxxxxxxxxxx Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211 To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php