Jump to content


Photo

Multiple Page Form


  • Please log in to reply
2 replies to this topic

#1 mvosoughi

mvosoughi
  • Members
  • PipPip
  • Member
  • 18 posts

Posted 20 April 2006 - 09:03 AM

Hello all,

I'm using the following code within the <form></form> tags to pass the variables to the next page:

<?php
foreach($_POST as $key=>$value){
if ($key!="submit"){
$value=htmlentities(stripslashes(strip_tags($value)));
echo "\t<input type=\"hidden\" name=\"$key\" value=\"$value\">\n";
}
}
?>

It does work on my localhost but when I load the script to the webserver, which already supports php and I have many php codes running with no problem, it will not pass the variables to the next page. Is there anything that I'm missing?

Thank you.

#2 slashemail

slashemail
  • Members
  • PipPip
  • Member
  • 15 posts

Posted 20 April 2006 - 09:35 AM

Just check if magic_quotes_gpc is set On.(For that matter compare the local PHP settings with ther server settings).

Sometimes magic_quotes create a hell lot of problems.


#3 mvosoughi

mvosoughi
  • Members
  • PipPip
  • Member
  • 18 posts

Posted 20 April 2006 - 11:12 AM

Thank you, problem is solved. I wasn't retrieving the data currectly.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users