Jump to content

[SOLVED] storing a $_GET in a hidden field


denoteone

Recommended Posts

Ok i want o pass a variable in the <a> and store it in a hidden field in my form.

 

am I on the right track with this?

 

 

 

<a href="general_request.php?redirect=<?php echo $PHP_SELF?>">click here for support</a>


new page general_request.php
<form>
<input type="hidden" name="redirect" value="<?$_GET['redirect'];?>" />
</form>

Link to comment
https://forums.phpfreaks.com/topic/125657-solved-storing-a-_get-in-a-hidden-field/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.