Form Submission
Moderator: General Moderators
-
Crimsonshift
- Forum Newbie
- Posts: 5
- Joined: Mon Jul 02, 2007 3:47 pm
Form Submission
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.
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.
the browser is looking for the domain page.php which does not exist.Crimsonshift wrote:http://page.php
-
Crimsonshift
- Forum Newbie
- Posts: 5
- Joined: Mon Jul 02, 2007 3:47 pm
I'm not a newbie. The url does exist I just used http://page.php as an example for this forum.
-
Crimsonshift
- Forum Newbie
- Posts: 5
- Joined: Mon Jul 02, 2007 3:47 pm
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.
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.
Last edited by Crimsonshift on Mon Jul 02, 2007 5:21 pm, edited 1 time in total.
In case you're using an apache webserver what does in page.php print?
Code: Select all
echo '<div>'; print_r(getallheaders()); echo "</div>\n";-
Crimsonshift
- Forum Newbie
- Posts: 5
- Joined: Mon Jul 02, 2007 3:47 pm
-
Crimsonshift
- Forum Newbie
- Posts: 5
- Joined: Mon Jul 02, 2007 3:47 pm
- superdezign
- DevNet Master
- Posts: 4135
- Joined: Sat Jan 20, 2007 11:06 pm