Jump to content


Photo

How to pass hidden variables when using header(location:...)?


  • Please log in to reply
1 reply to this topic

#1 Bbliksted

Bbliksted
  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 01 September 2006 - 03:49 PM

Hello

I'm relatively new to php... I'm trying to pass variables when using a page redirect header(location:page.php)
I know how to pass visible variables, something like:
  header(location:page.php?var=7)

but is there a way to pass the variable in a hidden form?

#2 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 01 September 2006 - 03:56 PM

if you dont ant to pass the variables in the url use a session or a cookie.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users