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?? Quote 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. Quote 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(); ?> Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.