Jump to content

Sending Data


php?

Recommended Posts

Okay so lets get down to business.

 

What do I want?

 

[uNSOLVED] I would like (using the the code listed below) when the user clicks 'Register' it sends the username to an admin in a form of accept or decline.

 

<input type="text" id="username" name="username" size="32" value="<?php 

if(isset($_POST['username'])){echo $_POST['username'];}?>" /><br />
Password: <input type="password" id="password" name="password" size="32" value="" /><br />
Re-password: <input type="password" id="password_confirmed" name="password_confirmed" size="32" 


value="" /><br />
Email: <input type="text" id="email" name="email" size="32" value="<?php 

if(isset($_POST['email'])){echo $_POST['email'];}?>" /><br />
<input type="submit" name="register" value="register" /><br />

 

 

Any suggestions on how I could go about doing this?

Link to comment
https://forums.phpfreaks.com/topic/83823-sending-data/
Share on other sites

what you need is a whole lot of things, if you are going to code it , pick a part from it then ask about that . this way of asking is a lot that people will get bored to explain all to you , so they pass your thread.

 

for example , first of all you need a form , where a user register his desire username with and pick a password ...

now try to write this , then next step ...

 

Link to comment
https://forums.phpfreaks.com/topic/83823-sending-data/#findComment-426532
Share on other sites

wherever admin is , you must record it to mysql for admin that could reach it .

create a table in mysql  ,with fields username , password ... 

record your users username and password there .    also have a field name for example  "status" . 

when the user submit his form you insert "unactive" to status .

 

now for the admin  , admin gets a list of this table which  status = "unactive"

 

when he click on "accept" , you update unactive to active in status field .

when he click decline you delete that row in your table .

 

Link to comment
https://forums.phpfreaks.com/topic/83823-sending-data/#findComment-426550
Share on other sites

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.