calling javascript file in php

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



i have a register.php and confirmregister.php file. in the first 
file the user fills a registeration form and in the second page they 
can review what they entered in the first page and then confirm 
their registration.

in register.php i am able to call a javascript file which does the 
validation of the form fields.

<script language="javascript" type="text/javascript" 
src="jscripts/erranzregistration.js">
</script>

<form id="form1" name="registrationform" method="post" 
action="http://website.com/php/confirmregister.php"; onSubmit="return 
validateform()">

however in the confirmregister.php file i am using the same script 
tag and the same form tag but the javascript file is not being 
called at all.

please advice how i can call the javascript file in 
confirmregister.php file.

thanks.



[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux