warpdesign Posted September 20, 2006 Share Posted September 20, 2006 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?? Link to comment https://forums.phpfreaks.com/topic/21465-is-it-possible-to-post-variables-to-a-webpage-without-form/ Share on other sites More sharing options...
wildteen88 Posted September 20, 2006 Share Posted September 20, 2006 You'll probably want to use a session then. if you dont want to use a form. Link to comment https://forums.phpfreaks.com/topic/21465-is-it-possible-to-post-variables-to-a-webpage-without-form/#findComment-95676 Share on other sites More sharing options...
onlyican Posted September 20, 2006 Share Posted September 20, 2006 $myname = "jamie";$_SESSION["myname"] = $myname;then call this by using $_SESSION["myname"];BUTRemeber, the top of every page, before any htm tags, you need <?php session_start(); ?> Link to comment https://forums.phpfreaks.com/topic/21465-is-it-possible-to-post-variables-to-a-webpage-without-form/#findComment-95682 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.