mvosoughi Posted April 20, 2006 Share Posted April 20, 2006 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. Quote Link to comment Share on other sites More sharing options...
slashemail Posted April 20, 2006 Share Posted April 20, 2006 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. Quote Link to comment Share on other sites More sharing options...
mvosoughi Posted April 20, 2006 Author Share Posted April 20, 2006 Thank you, problem is solved. I wasn't retrieving the data currectly. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.