denoteone Posted September 24, 2008 Share Posted September 24, 2008 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 More sharing options...
Barand Posted September 24, 2008 Share Posted September 24, 2008 $PHP_SELF is deprecated. Use $_SERVER['PHP_SELF'] and you need value="<?php echo $_GET['redirect']?> Link to comment https://forums.phpfreaks.com/topic/125657-solved-storing-a-_get-in-a-hidden-field/#findComment-649718 Share on other sites More sharing options...
denoteone Posted September 24, 2008 Author Share Posted September 24, 2008 thanks! i will make a note of that. but it is working perfect now. Link to comment https://forums.phpfreaks.com/topic/125657-solved-storing-a-_get-in-a-hidden-field/#findComment-649729 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.