Jump to content

[SOLVED] $_POST Not working?


DJTim666

Recommended Posts

Does anyone see anything wrong with this coding?

 

Information.php

<html>
<body>
<form action="script.php" method="post">
Username: <input name="user" type="text" />
<input value="Submit" type="submit" />
</form>
</body>
</html>

 

Script.php

<?php
$user = $_POST ['user'];
echo "Username: $user";
?>

 

I have been over the code 400 times, and it should work perfectly. But when I insert it, for some reason it will not post the username entered on the previous page.

Link to comment
https://forums.phpfreaks.com/topic/49913-solved-_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.