Solved

POST form not working but GET works.  Setup IIS

Posted on 2008-06-25
5
404 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
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

707 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now