RE: calling javascript file in php

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

 



Hi
 
You can call the Javscript in between PHP file, the syntax one u using
right. But tell me what is problem u facing.
 
 
 
Thanks,
Muthukumar Selvarasu,
Project Manager (Web Development),
Webmasters Ltd.


----- Original Message ----
From: Sudhakar <finals27@xxxxxxxxx <mailto:finals27%40yahoo.com> >
To: php-objects@xxxxxxxxxxxxxxx <mailto:php-objects%40yahoogroups.com> 
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]
 


[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