Re: javascript problem

From: Date: Mon, 08 Jan 2001 19:37:54 +0000
Subject: Re: javascript problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-33292@lists.php.net to get a copy of this message
Mike, Is login_id a form field? If so you should use document.forms.addstudent.login_id.value. If I'm way off, sorry but it's sort of hard to figure out your problem from just looking at what you've got here. Could you give a URL? -Toby ----- Original Message ----- From: "mike" <mike263263@yahoo.com> To: <php-general@lists.php.net> Sent: Monday, January 08, 2001 2:05 PM Subject: [PHP] javascript problem > 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/ > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#33292) next »