mforan Posted October 19, 2008 Share Posted October 19, 2008 I have this problem where Johnsmith doesnt get sent to the page. the website : /vote.php?id=847&user=JohnSmith the website inqueston allows you to select a page that the data will be sent to, ie "user" i made this code to recive the info and so i knew it was working i made it so it would email me something: <?php include("dbinfo.inc.php"); $reward = $_POST['user']; mail( [email protected], "free land test", "lol" ); ?> thats not working, any ideas? Link to comment https://forums.phpfreaks.com/topic/129128-string-problem/ Share on other sites More sharing options...
DarkWater Posted October 19, 2008 Share Posted October 19, 2008 Put the email address in ' ' in your PHP script since it's a string...? Link to comment https://forums.phpfreaks.com/topic/129128-string-problem/#findComment-669424 Share on other sites More sharing options...
mforan Posted October 19, 2008 Author Share Posted October 19, 2008 hmm, just tryed that. no luck. i also realised the directory it would be sending the data to was passworded $reward = $_POST['user']; would be the correct way to receive the input though yer? Link to comment https://forums.phpfreaks.com/topic/129128-string-problem/#findComment-669426 Share on other sites More sharing options...
DarkWater Posted October 19, 2008 Share Posted October 19, 2008 No, it's $_GET. Link to comment https://forums.phpfreaks.com/topic/129128-string-problem/#findComment-669428 Share on other sites More sharing options...
mforan Posted October 19, 2008 Author Share Posted October 19, 2008 ok now its looking like: <?php include("dbinfo.inc.php"); $reward = $_GET['user']; mail( '[email protected]', "free land test", "lol" ); ?> still not working thou. the exact url that shud make it email that test is: http://www.mpogr.com/vote.php?id=847&user=tester Link to comment https://forums.phpfreaks.com/topic/129128-string-problem/#findComment-669442 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.