Jump to content

Archived

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

warpdesign

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

Recommended Posts

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??

Share this post


Link to post
Share on other sites
$myname = "jamie";
$_SESSION["myname"] = $myname;

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

BUT

Remeber, the top of every page, before any htm tags, you need <?php session_start(); ?>

Share this post


Link to post
Share on other sites

×

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.