Closed Bug 16476 Opened 25 years ago Closed 25 years ago

[BLOCKER]Form is not submitting values.

Categories

(Core :: DOM: Core & HTML, defect, P1)

defect

Tracking

()

VERIFIED FIXED

People

(Reporter: desale, Assigned: pollmann)

Details

Attachments

(1 file)

Form is not submitting values to CGI.

BUILDS:
10-14-09 [Mozilla]

STEPS TO REPRODUCE:
1] Please copy HTML code I'm providing. Save as HTML file and open this file
with mozilla.exe.
2]You'll see one text box, password field and a "Submit" button.
3] Click this "Submit" button.
4] See the results.

DESCRIPTION:

This HTML file has one form which submits the results to cgi file. Please do not
change action in form, since I'm directing it to proper cgi file. I'm going to
provide cgi code also, so you can change it if you want.
Result screen should show values of all three input fields.

EXPECTED RESULTS:

Result screen should show values of all three input fields. [Hidden, Text,
Password]

Hidden Value is: Hidden Value
Text Value is: Text Value
Password Value is: Password Value

ACTUAL RESULTS:
Input values can not be seen on results screen.

Hidden Value is:
Text Value is:
Password Value is:

HTML CODE START:

<HTML>
<HEAD>
</HEAD>
<BODY>
<FORM name="results" action="http://bubblegum/ngdriver/cgi-bin/formsubmit.cgi"
method="post">
<input type="hidden" name="hid" value="Hidden Value">
<input type="text" name="tex" value="Text Value"><br>
<input type="password" name="pas" value="Password Value"><br>
<input type="submit" value="Submit">
</FORM>
</BODY>
</HTML>

HTML CODE END:

CGI CODE START:

#!/usr/local/bin/perl
require "cgi-lib.pl";
print "Content-type: text/html", "\n\n";
MAIN:
{

&ReadParse(*input);
$hidval = $input{'hid'};
$textval = $input{'tex'};
$pasval = $input{'pas'};
print "<HTML>\n";
print "<HEAD>\n";
print "<TITLE>CGI Test</TITLE>\n";
print "</HEAD>\n";
print "<BODY>\n";
print "<H3> Hidden Value is:    $hidval</H3><br>\n";
print "<H3> Text Value is:    $textval</H3><br>\n";
print "<H3> Password Value is:    $pasval</H3><br>\n";
print "</BODY>\n";
print "</HTML>\n";
}
exit(0);

CGI CODE END:

If you want you can create your own cgi file by copying this code or just use my
cgi file by not changing action in HTML file I'm providing.
Priority: P3 → P1
Summary: Form is not submitting values. → [BLOCKER]Form is not submitting values.
Setting priority to P1 since its blocking our automation test.
Assignee: karnaze → kmcclusk
Kevin, this is probably a duplicate.
Assignee: kmcclusk → pollmann
Its pulling the correct values out of the form elements. Must be a problem in
the posting of the data. This is probably a dup of one of the other form posting
bugs.
Status: NEW → ASSIGNED
OS: Windows 95 → All
Hardware: PC → All
Target Milestone: M11
Just checked in what I hope is a fix, testing...
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Attached file Above test case.
Fixed.
Status: RESOLVED → VERIFIED
1999101508 build, NT.
Component: HTML: Form Submission → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: