zoryk Posted February 1, 2011 Share Posted February 1, 2011 Hi, I'm trying to get HTTP post to work on my server but even the most basic script does not work. Can anyone help me? PHP script: <?php echo 'Hello ' . htmlspecialchars($_POST["name"]) . '!'; ?> I try and POST data to the script using: http://www.czoryk.co.uk/post_test.php?name=Chris But when I try and do that only ' Hello ! ' is displayed. I'm sure this is just a simple error but I can't figure out what's wrong. Thanks, Chris Link to comment https://forums.phpfreaks.com/topic/226348-basic-http-post-not-working/ Share on other sites More sharing options...
BlueSkyIS Posted February 1, 2011 Share Posted February 1, 2011 that is not posting. that is GET'ing Link to comment https://forums.phpfreaks.com/topic/226348-basic-http-post-not-working/#findComment-1168327 Share on other sites More sharing options...
cyberRobot Posted February 1, 2011 Share Posted February 1, 2011 Should work if you change it to: <?php echo 'Hello ' . htmlspecialchars($_GET["name"]) . '!'; ?> Link to comment https://forums.phpfreaks.com/topic/226348-basic-http-post-not-working/#findComment-1168398 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.