air_tebu Posted December 18, 2007 Share Posted December 18, 2007 like the topic, what is the code. i'm try to use hiddenfield to send 1 viariable from form 1 and that variable will be use in my form2 on the same page. input for that variable is at form1 Quote Link to comment Share on other sites More sharing options...
rajivgonsalves Posted December 18, 2007 Share Posted December 18, 2007 Yes you can do it with hidden fields the best way... Quote Link to comment Share on other sites More sharing options...
~n[EO]n~ Posted December 18, 2007 Share Posted December 18, 2007 You can do it like this for first page <table width="100%"> <form name="contact" action="otherpage.php" method="post"> <input name="i_am_hidden" type="hidden" value="1" /> <input type="submit" value="Submit" name="submit"> </form> </table> and other page <?php if(isset($_POST['i_am_hidden']) ) { $val = $_POST['i_am_hidden']; echo $val; } else { echo "I didn't get the value..."; } ?> Quote Link to comment Share on other sites More sharing options...
air_tebu Posted December 19, 2007 Author Share Posted December 19, 2007 that was help a lot, thanks 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.