Re: Brain Dead...

From: Date: Mon, 18 Mar 2002 02:35:31 +0000
Subject: Re: Brain Dead...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-88867@lists.php.net to get a copy of this message
Ok, but I have this as an example.... <select name="abc" size="1"> <option value="a" selected>A</option> <option value="b">B</option> <option value="c">C</option> <option value="d">D</option> </select> Are you saying that abc should be $abc? I not clear. I have for my sql as this... db_name = "xxxinks"; $table_name = "ssslinks"; $connection = @mysql_connect("mybox.com","anyusers",!@#$%) or die ("Couldn't connect"); $db = @mysql_select_db($db_name, $connection) or die ("Couldn't select database."); $sql = "INSERT INTO $table_name (abc, key_word, links, name) VALUES ('$abc', '$keywords', '$links', '$name')"; $result = @mysql_query($sql, $connection) or die("Couldn't execute query."); but I get that it can't do the query. So I am think it not passing abc... Chuck ----- Original Message ----- From: "Thalis A. Kalfigopoulos" <thalis@cs.pitt.edu> To: "Chuck "PUP" Payne" <cepayne@magidesign.com> Cc: "PHP General" <php-general@lists.php.net> Sent: Sunday, March 17, 2002 9:25 PM Subject: Re: [PHP] Brain Dead... > Dropdownmenu is a <select name="ddmenu"><option>....</select> > So the php variable that will hold the user's choice is stored in variable $ddmenu. > Thus, no "input" needed. > > > cheers, > --thalis > > > On Sun, 17 Mar 2002, Chuck "PUP" Payne wrote: > > > I am trying to get a form to work with pull down menu. But I am so brain > > dead I forgot how to get the input from the pull down menu. Where do I put > > input to pass on to php? > > > > Chuck Payne > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > >

« previous php.general (#88867) next »