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
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.

Link to comment
Share on other sites

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>

Link to comment
Share on other sites

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>

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.