Jump to content


hidden value

  • Please log in to reply
2 replies to this topic

#1 crouchjay

  • Members
  • PipPip
  • Member
  • 26 posts

Posted 20 May 2006 - 05:29 PM

I have created a value and want to post it on the next page so:
<input type="hidden" name="<?php echo $value; ?>" />
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?


#2 ober

  • Staff Alumni
  • Advanced Member
  • 5,337 posts
  • LocationEast Coast, USA

Posted 23 May 2006 - 07:46 PM

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.

Info: PHP Manual

#3 seanlim

  • Members
  • PipPipPip
  • Advanced Member
  • 355 posts
  • LocationLondon, United Kingdom

Posted 03 June 2006 - 10:21 AM

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
<input type="hidden" name="<?php echo $value; ?>" />
it should be
<input type="hidden" name="value" value="<?php echo $value; ?>" />

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)


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users