Re: defining separate form element within While statment

From: Date: Mon, 05 Aug 2002 07:16:08 +0000
Subject: Re: defining separate form element within While statment
Groups: php.general 
Request: Send a blank email to php-general+get-111175@lists.php.net to get a copy of this message
>I'm having trouble passing "$the_score" to "edit_s1_php3": > > // Display the scores > while ( $row = mysql_fetch_array($result) ) { > echo( "<form>" . "<p>" . > $row["last_name"] . " , " . $row["first_name"] . > "</p>" . > $row["s1"] . " <input type='text' > name='the_score' size='3'>" I think maybe you want: name='the_score[s1]' Any JavaScript will have to refer to it as document.form.element.5.value since you'll never get JavaScript to use [ or ] as part of the name. >I'm pretty sure it's because I don't have the form action defined.. however, >each input goes to a diffent action. How do I do this? I dunno how you made that work. Not even sure why you'd want to. I guess it has to be JavaScript... But you *could* do it with having a different <FORM> for each row. -- Like Music? http://l-i-e.com/artists.htm I'm looking for a PRO QUALITY two-input sound card supported by Linux (any major distro). Need to record live events (mixed already) to stereo CD-quality. Soundcard Recommendations? Software to handle the recording? Don't need fancy mixer stuff. Zero (0) post-production time. Just raw PCM/WAV/AIFF 16+ bit, 44.1KHz, Stereo audio-to-disk.

« previous php.general (#111175) next »