Delete/Add a record with dropdown?
Posted 17 October 2006 - 05:47 PM
I have a database that includes a customers table and a students table. In my admin I have the ability to update a customers information.
I'm looking to include a dropdown menu on this customers page that allows me to use a dropdown to select a yes or no under a heading of student access.
Yes = delete record from students table
No = add current customer to students table
I'm not really sure on how to go about this - can someone point me in the right direction of how I could accomplish this? Even direction of where I could find a tutorial for this specifically would greatly help!
Posted 17 October 2006 - 06:44 PM
<form name="op" id="op" action="webpage.php" method="post">
<option name="select1" id="select1">
then in your php page you can read hte variables like
$select1 = $_POST['select1'];
then you can have more options on one page.
Don't forget to clean variables before messing with db
Business Website: http://www.infotechnologist.biz
Personal Website: http://www.joyelpuryear.com
Blog Site: http://www.realmofwriting.com
Services: Web development, application development, mobile development, and custom development. All services listed on my website.
Posted 17 October 2006 - 06:59 PM
Thanks again for the speedy response though!
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users