Solved

POST form not working but GET works.  Setup IIS

Posted on 2008-06-25
5
423 Views
Last Modified: 2013-12-13
I am 99% sure that the problem is with my server.  As you can see, there is nothing wrong with the code in the snippet below.  It's a simple form that passes information via the form input "user" to the page process.php.

I had the same problem before and somehow it started working again.  I tried to repeat some changes I made to my server that I thought correct the problem last time but those changes didn't work.

I need someone that knows how to confirgure IIS on a Windows XP machine to help me out.

I looked in php.ini and register_globals = Off.  I don't believe this needs to be on.  I just tried turning it on and it didn't do anything for my problem anyway.

ANY SERVER GURU OUT THERE WILLING TO HELP?
<form name="login" method="post" action="process.php">
<input type="text" name="user">
<input type="submit" name="submit" value="Submit">
 
//Here is the code from process.php
<?php
   print $_POST['user'];
?>

Open in new window

0
Comment
Question by:jallenmorris
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 2

Accepted Solution

by:
CurtinProp earned 250 total points
ID: 21871335
Have you tried just using $_REQUEST

btw performance wise its quicker to use echo instead of print.
0
 
LVL 29

Expert Comment

by:fosiul01
ID: 21883051
Well, when You submit the form, what does it say ??

any error message or anything ??

it cant be just blank!!

You are advanced member on this subject but still , asking ->  is this problem happended suddently or you never able to work on that server with post method ??

0
 
LVL 29

Assisted Solution

by:fibo
fibo earned 250 total points
ID: 21893228
1 - what if you started with a full debugging exploration of passed values?
 
//Here is the code from process.php
<?php
$debug=true; //easy to change
if ($debug) {
  echo '** on entry, the array _POST is [<pre>';
  print_r ($_POST);
  echo '</pre>] **<br>';
}
   print $_POST['user'];
?>

2 - in parallel, look for other items in the check list
-- are you using the cgi or dll version of php
-- any problem with disk space or disk quota for user? for IIS
-- any problem with access rights on the sessions directory? with any other directory?

3 - You might get a copy of phpinfo() and, if nothing confiudential is present, post it here as attached file
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question