crouchjay Posted May 20, 2006 Share Posted May 20, 2006 I have created a value and want to post it on the next page so:[code]$value=$_POST['value'];<input type="hidden" name="<?php echo $value; ?>" />url...?value='.$value.'[/code]but when I put the cursor over the link the value is shown blank, but I know there is a value there. Is this the correct sequence of steps if you want to save a value to use later?Jay, Quote Link to comment Share on other sites More sharing options...
ober Posted May 23, 2006 Share Posted May 23, 2006 I hope that isn't an exact copy of the code... I assume the last part is pseudo code.But I guess I'm not sure why you're creating a hidden input if you're sticking it right into a URL. Quote Link to comment Share on other sites More sharing options...
seanlim Posted June 3, 2006 Share Posted June 3, 2006 Hi there,I can't really understand your code though i understand what you are trying to achieve.The problem that i can spot in your code is in the line [code]<input type="hidden" name="<?php echo $value; ?>" />[/code]it should be[code]<input type="hidden" name="value" value="<?php echo $value; ?>" />[/code]If this does not solve your problem, please post the code of your link also (which i assume is the last line of your code)HTH 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.