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