Page 1 of 1

Form Submission

Posted: Mon Jul 02, 2007 3:55 pm
by Crimsonshift
Hello everyone. The question that I have is as follows:
The system I'm working on is 4.3.9 and the issue was that I have a form (the action url is a made-up one for this post):

<form action='http://page.php' method='post'>

None of the $_POST variables submitted are available. However when I changed the form definition to be as below (note the differences in action), everything works.

<form action='page.php' method='post'>


I am wondering why this is happening.

Posted: Mon Jul 02, 2007 3:57 pm
by volka
Crimsonshift wrote:http://page.php
the browser is looking for the domain page.php which does not exist.

Posted: Mon Jul 02, 2007 5:03 pm
by Crimsonshift
I'm not a newbie. The url does exist I just used http://page.php as an example for this forum.

Posted: Mon Jul 02, 2007 5:04 pm
by Benjamin
Post the actual code, including the two differences.

Posted: Mon Jul 02, 2007 5:08 pm
by Crimsonshift
Doesn't Work: <form action='http://www.xxxxxxxxx.com/error_reporting/page.php' method='post' onSubmit="return Validator(this)" name="Form1" language="JavaScript">


Does Work: <form action='page.php' method='post' onSubmit="return Validator(this)" name="Form1" language="JavaScript">


This is not my original code, and I'm wondering if the language="javascript" is throwing it off or if there is some setting on the server or in the php.ini file that doesn't allow for urls in the action field?? I've been programming in php for the last 4 years, and this is the first time something like this has come up.

Posted: Mon Jul 02, 2007 5:19 pm
by volka
In case you're using an apache webserver what does

Code: Select all

echo '<div>'; print_r(getallheaders()); echo "</div>\n";
in page.php print?

Posted: Mon Jul 02, 2007 5:25 pm
by Crimsonshift
this is a live site, and I don't want to mess with it anymore, their FTP is really touchy and I don't want to have it mess up by me uploading something. Especially because it's not really a problem. I'm just curious as to what could be causing this. Thank You for trying to help me!!!

Posted: Mon Jul 02, 2007 5:46 pm
by Crimsonshift
It must be some setting on the server or in php.ini because when I run the code on my server there is no issue. Anyone know what setting could be causing this?

Posted: Mon Jul 02, 2007 6:31 pm
by superdezign
Well, you aren't making sense.

Just post to the same page and be done with it.

Posted: Mon Jul 02, 2007 6:49 pm
by volka
A misconfigured reverse proxy or deep inspection firewall for incoming requests can cause such behaviour ....but it could also be something completely different.