ballhogjoni Posted May 7, 2007 Share Posted May 7, 2007 How would you pass a hidden input and make sure it is set usiing php? example: <td align="center"> <form action=""> <input type="hidden" name="too_small_lead"> <input type="Submit" value="Too Small"> </form> </td> php code $too_small_lead = $_POST['too_small_lead']; if (isset($too_small_lead)) { echo "hi I'm set"; } My problem is that it is not echoing "hi i'm set" Quote Link to comment https://forums.phpfreaks.com/topic/50394-solved-how-do-you-pass-a-hidden-input/ Share on other sites More sharing options...
Psycho Posted May 7, 2007 Share Posted May 7, 2007 You need to give the field a value. <input type="hidden" name="too_small_lead" value="something"> Quote Link to comment https://forums.phpfreaks.com/topic/50394-solved-how-do-you-pass-a-hidden-input/#findComment-247495 Share on other sites More sharing options...
papaface Posted May 7, 2007 Share Posted May 7, 2007 <input type="hidden" name="too_small_lead"> It has no value="something" Try: <input type="hidden" name="too_small_lead" value"something"> It should say "hi i'm set" then. Quote Link to comment https://forums.phpfreaks.com/topic/50394-solved-how-do-you-pass-a-hidden-input/#findComment-247496 Share on other sites More sharing options...
ballhogjoni Posted May 7, 2007 Author Share Posted May 7, 2007 Nope it didnt work Quote Link to comment https://forums.phpfreaks.com/topic/50394-solved-how-do-you-pass-a-hidden-input/#findComment-247500 Share on other sites More sharing options...
sasa Posted May 7, 2007 Share Posted May 7, 2007 <form action="" method="POST"> Quote Link to comment https://forums.phpfreaks.com/topic/50394-solved-how-do-you-pass-a-hidden-input/#findComment-247505 Share on other sites More sharing options...
ballhogjoni Posted May 7, 2007 Author Share Posted May 7, 2007 Dude I'm a freking idiot. Thank You Quote Link to comment https://forums.phpfreaks.com/topic/50394-solved-how-do-you-pass-a-hidden-input/#findComment-247507 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.