javascript problem

From: Date: Mon, 08 Jan 2001 19:05:23 +0000
Subject: javascript problem
Groups: php.general 
Request: Send a blank email to php-general+get-33283@lists.php.net to get a copy of this message
The name of my php file is addstudent.php3. When the users make selection in the drop-down list, echo "<p><center>Select Student: <SELECT NAME=\"login_id\" onChange =\"goToUrl()\">";... a javascript function is called. echo "<SCRIPT Language =JAVASCRIPT>"; echo "function goToUrl() "; echo "{"; echo "selection = document.addstudent.login_id;";... The error message I got is "document.addstudent.login_id" is not an object. This function did work before. Could some experts help me out why it does not work any more? Thank you very much. haiqi __________________________________________________ Do You Yahoo!? Yahoo! Photos - Share your holiday photos online! http://photos.yahoo.com/

« previous php.general (#33283) next »