Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I'm stumped with this Forms Validation

Status
Not open for further replies.

poplarman

IS-IT--Management
Dec 15, 2001
12
US
I hope this is the right place for this cos it's Perl, HTML and JavaScript!

I have an initial HTML Form with the following:

-------------------------------------------------
<form action=&quot;cgi-bin/Apply.pl&quot; name=&quot;ApplyForm&quot; method=&quot;POST&quot;>
<input type=&quot;hidden&quot; name=&quot;Page&quot; value=&quot;1&quot;>
.
.
<a href=&quot;#&quot; onClick=&quot;doValForm1()&quot;>Continue</a>
-------------------------------------------------

The Js validation works and I then drop into the Perl script where I generate Form 2 with the following included:

-------------------------------------------------
<form action=&quot;Apply.pl&quot; name=&quot;ApplyForm&quot; method=&quot;POST&quot;>
<input type=&quot;hidden&quot; name=&quot;Page&quot; value=&quot;2&quot;>
.
.
<a href=&quot;#&quot; onClick=&quot;doValForm2()&quot;>Continue</a>
-------------------------------------------------

When clicking on Continue on the 2nd Form no validation is carried out and all I get is a refresh of the currently displayed form.

Please help
 
if maybe You put the full cgi/perl up We could better help You

I can not see where or what sub the # should carry to



MAWarGod

If life is planed, That should make us wonder
 
MAWARGod

Thanks for your response but I've cracked this now:

The '#' is irrelevant because the onClick is obeyed. I had the command to submit within doValForm1 but had left it out of doValForm2. It works fine now.

Thanks again.

Hay

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top