Jump to content

[SOLVED] Javascript In Php


AnotherQuestion

Recommended Posts

I have written a some code that is suppoed to call a javascript to submit a form if a value ==1

 

If ($totalRows_RsCustomer ==1 ){echo "<script language="javascript" type="text/javascript">

    document.UserDetails.submit();

    </script>";}

 

At runtime i get an error "Document.Userdetails is null or not an object"

 

 

Link to comment
https://forums.phpfreaks.com/topic/171857-solved-javascript-in-php/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.