Jump to content


Is it possible to post variables to a webpage without form?

  • Please log in to reply
2 replies to this topic

#1 warpdesign

  • Members
  • PipPip
  • Member
  • 14 posts

Posted 20 September 2006 - 08:54 PM

Is it possible to send variables to another webpage through POST without having the user fill out a form and hit submit? I want to pass variables between one page and another but they are not data that is collected from a form, and I don't want the information to be visible in the URL (_GET). The only way I know to send POST information is in a form tag using method=post, is there another way to send the data??

#2 wildteen88

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

Posted 20 September 2006 - 08:59 PM

You'll probably want to use a session then. if you dont want to use a form.

#3 onlyican

  • Members
  • PipPipPip
  • Advanced Member
  • 921 posts
  • LocationHants - UK

Posted 20 September 2006 - 09:18 PM

$myname = "jamie";
$_SESSION["myname"] = $myname;

then call this by using $_SESSION["myname"];


Remeber, the top of every page, before any htm tags, you need <?php session_start(); ?>
Tell me the problem, I will try tell you the solution

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users