I have some drop down menu buttons about 8 of them with names on. If one is called other. How do you know how I could have a box that popped up asking for them to type their name, then It gets put into my table in my database.
I can't put it together but I know some basic info.
if($fname == 'Other'){
// popup code
}elseif($lname == 'Other'){
//popup stuff
}else{
mysql_query("INSERT INTO name (fname, lname) VALUES ($value1, $value2)");
}
Thats the code saying that if other is used, then the pop-up code pops up asking for some data and it inserts it into my name table and my lname and fname coloums.
I have also got
mysql_connect($host,$username,$password);
mysql_select_db($database_name);
Can anybody put this into a .php file or improve on it ?
Thanks Matt_2K