Solved

POST form not working but GET works.  Setup IIS

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Popup to change image and store url in database 2 31
Store image url and display it for user profile 6 23
Amazon Redshift 2 28
.htaccess 5 22
Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
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…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

867 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

19 Experts available now in Live!

Get 1:1 Help Now