Jump to content

Standard POST variables not working on server


Recommended Posts

Hi,

I have PHP/Mysql running on my local server and everything works 100% I have now started running PHP on a windows 2003 IIS.
The issue I am having is with a standard POST display.
I have 2 files, test.php and test2.php. The following is what they contain:

Test.php:::

<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<form name="form1" method="post" action="test2.php">
  <p>
    <input name="First_Name" type="text" id="First_Name">
  </p>
  <p>
    <input type="submit" name="Submit" value="Submit">
  </p>
</form>
</body>
</html>

Test2.php

<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<form name="form1" method="post" action="">
  <p><?php echo $HTTP_POST_VARS['First_Name']; ?> the name</p>
  <p>&nbsp; </p>
</form>
</body>
</html>


On my machine, the Post_Vars works fine. On the IIS server, nothing comes up. It's blank. I can't figure out what is wrong with the setup.

Any ideas?

Thanks a lot,
Chris
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.