Muffy Posted April 4, 2007 Share Posted April 4, 2007 Is there any way to do this (below code) without using the POST method (ie. is there a more discreet method where the "?problem=true" doesn't need to show in the URL)? if ($noProblems) { header("Location: index.php"); } else { header("Location: index.php?problem=true"); } Link to comment https://forums.phpfreaks.com/topic/45500-solved-send-variable-to-page/ Share on other sites More sharing options...
MadTechie Posted April 4, 2007 Share Posted April 4, 2007 Erm GET is the one thats shows in the url, POST doesn't could try sessions or cookies Link to comment https://forums.phpfreaks.com/topic/45500-solved-send-variable-to-page/#findComment-220941 Share on other sites More sharing options...
per1os Posted April 4, 2007 Share Posted April 4, 2007 Sessions and cookies are definitely the way to go. Just remember that they only work on your domain name, they do not transfer. If you need to send to another site, well you can always use CURL and add the get data and post data that way. Link to comment https://forums.phpfreaks.com/topic/45500-solved-send-variable-to-page/#findComment-220944 Share on other sites More sharing options...
Muffy Posted April 4, 2007 Author Share Posted April 4, 2007 GET is the one thats shows in the url, POST doesn't touché. Thanks for the suggestions. I've just played around with sessions and it's just what I want. Thanks! Link to comment https://forums.phpfreaks.com/topic/45500-solved-send-variable-to-page/#findComment-220953 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.