Jump to content

MERGED: how to insert into database?


phphelpme

Recommended Posts

how do i insert this into a database? i need the php code please.

<select class="select" name="sex" id="sex">
            <option value="0">Select Gender</option>
            <option value="1">Female</option>
            <option value="2">Male</option></select>

I need it to insert what ever one they select

Thanks

Link to comment
https://forums.phpfreaks.com/topic/220713-merged-how-to-insert-into-database/
Share on other sites

Right, this is a forum to help with your php coding issues, not to simply write the code for you. Ya gotta give us at least something, if you know the basics of php/mysql then take a look at - http://www.tizag.com/mysqlTutorial/mysqlinsert.php

 

Otherwise, we can help you if you have some code that's error'ing out if that's the case. But just i need the code please isn't what it's for, at least I don't think so...still new myself.

i need to know how to make the php code to insert what ever they picked out of these options

 

<label for="Gender">Gender:</label>

            </div><div align="left"><select class="select" name="sex" id="sex">

            <option value="0">Select Gender</option>

            <option value="1">Female</option>

            <option value="2">Male</option></select></div>

i need to know how to make the php code to insert what ever they picked out of these options , insert in to the database for gender and what ever gender they picked will determine there profile , please help!

 

<label for="Gender">Gender:</label>

            </div><div align="left"><select class="select" name="sex" id="sex">

            <option value="0">Select Gender</option>

            <option value="1">Female</option>

            <option value="2">Male</option></select></div>

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.