Re: calling javascript file in php

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

 



The description of problem is incomplete , it lacks the php code you are using to include the file with the javascript code, send some code not the HTML one but the php one, 
 
--
Regards,
Abhishek jain



----- Original Message ----
From: Sudhakar <finals27@xxxxxxxxx>
To: php-objects@xxxxxxxxxxxxxxx
Sent: Wednesday, January 9, 2008 11:31:57 AM
Subject:  calling javascript file in php

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="javascrip t" type="text/javascri pt" 
src="jscripts/ erranzregistrati on.js">
</script>

<form id="form1" name="registrationf orm" method="post" 
action="http://website. com/php/confirmr egister.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.





      ____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


[Non-text portions of this message have been removed]


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

  Powered by Linux