Jump to content

Basic HTTP POST not working


zoryk

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.