Jump to content

Question

Posted

I'm making a custom PHP login script where ppl can make account and login. I won't be using ceres or flux cp. how would i do the gender when ppl make a new account? codes requires , ty.

2 answers to this question

Recommended Posts

Posted

Using form, example below.

<form method="post">

<select name="Gender"><option value="M">Male</option><option value="F">Female</option></select>

</form>

Then you gonna use php code to fetch all those variables like $getGender = $_POST['Gender']

where $_POST['Gender'] comes from name select tag.

do php security also for sql-injection.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...