tsilenzio Posted July 26, 2007 Share Posted July 26, 2007 Okay I want to send a variable over to another page, but theres no form, i dont want to use session, and defiently dont want to use get!! so i was wondering would something like: <?php $_POST['someval'] = 12345; header("Location: path/path/somefile.php"); ?> will the value even register inside POST, if so do you think it would stay in there till the next page..? just wodnering! Thanx in advance! Quote Link to comment Share on other sites More sharing options...
teng84 Posted July 26, 2007 Share Posted July 26, 2007 dude look if you will go to the next page and what to have the value from the first page post and get and session is the only way??? even if your trying that header thing it requires a query string to be pas to another page tru get Quote Link to comment Share on other sites More sharing options...
tsilenzio Posted July 26, 2007 Author Share Posted July 26, 2007 I know its the onyl way im asking if u can assign a value to $_POST['somevar'] or if the onyl way to assign values to it is thru a form Quote Link to comment Share on other sites More sharing options...
teng84 Posted July 26, 2007 Share Posted July 26, 2007 if your saying this way $_POST['some']='teng'; then pas that into another form like get that valu from another page then no no no Quote Link to comment Share on other sites More sharing options...
tsilenzio Posted July 26, 2007 Author Share Posted July 26, 2007 Okay then ill just use session and unset it after next page, thanx alot man! Quote Link to comment Share on other sites More sharing options...
teng84 Posted July 26, 2007 Share Posted July 26, 2007 dont forget to mark all your posting solved when it is Quote Link to comment 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.