Jump to content
  • 0

N>Codes


jayriku12

Question


  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.00
  • Content Count:  32
  • Reputation:   0
  • Joined:  06/25/12
  • Last Seen:  

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.

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  113
  • Reputation:   5
  • Joined:  06/06/12
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.00
  • Content Count:  32
  • Reputation:   0
  • Joined:  06/25/12
  • Last Seen:  

Thank you! *Topic has been answered by en_ dev.

Link to comment
Share on other sites

×
×
  • Create New...