defining separate form element within While statment

From: Date: Sun, 04 Aug 2002 19:36:09 +0000
Subject: defining separate form element within While statment
Groups: php.general 
Request: Send a blank email to php-general+get-111083@lists.php.net to get a copy of this message
Hi, 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'>" . " <a href='edit_s1.php3?name=$name'>edit score</a>" ."<br>" . $row["s2"] . " <input type='text' name='the_score' size='3'>" . " <a href='edit_s2.php3?name=$name'>edit score</a>" . "<br>" . $row["s3"] . " <input type='text' name='the_score' size='3'>" ." <a href='edit_s3.php3?name=$name'>edit score</a>" . "<br> " . $row["s4"] . " <input type='text' name='the_score' size='3'>" . " <a href='edit_s4.php3?name=$name'>edit score</a>" . "<br>" . $row["s5"] . " <input type='text' name='the_score' size='3'>" . " <a href='edit_s5.php3?name=$name'>edit score</a>" . "<br>" . $row["s6"] . " <input type='text' name='the_score' size='3'>" . " <a href='edit_s6.php3?name=$name'>edit score</a>" . "<br>" . $row["s7"] . " <input type='text' name='the_score' size='3'>" . " <a href='edit_s7.php3?name=$name'>edit score</a>" . "<br>" . $row["s8"] . " <input type='text' name='the_score' size='3'>" . " <a href='edit_s8.php3?name=$name'>edit score</a>" . "<br>" . $row["s9"] . " <input type='text' name='the_score' size='3'>" . " <a href='edit_s9.php3?name=$name'>edit score</a>" . "<br>" . $row["s10"] . " <input type='text' name='the_score' size='3'>" . " <a href='edit_s10.php3?name=$name'>edit score</a>" . "<br>" . $row["s11"] . " <input type='text' name='the_score' size='3'>" . " <a href='edit_s11.php3?name=$name'>edit score</a>" . "<br>" . $row["s12"] . " <input type='text' name='the_score' size='3'>" . " <a href='edit_s12.php3?name=$name'>edit score</a>" . "<br>" . $row["s13"] . " <input type='text' name='the_score' size='3'>" . " <a href='edit_s13.php3?name=$name'>edit score</a>" . "<br>" . $row["s14"] . " <input type='text' name='the_score' size='3'>" . " <a href='edit_s14.php3?name=$name'>edit score</a>" . "<br>" . $row["s15"] . " <input type='text' name='the_score' size='3'>" . " <a href='edit_s15.php3?name=$name'>edit score</a>". "</form>"); } 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? Thanks In Advance, Jim

« previous php.general (#111083) next »