php? Posted December 31, 2007 Share Posted December 31, 2007 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? Quote Link to comment https://forums.phpfreaks.com/topic/83823-sending-data/ Share on other sites More sharing options...
asmith Posted December 31, 2007 Share Posted December 31, 2007 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 ... Quote Link to comment https://forums.phpfreaks.com/topic/83823-sending-data/#findComment-426532 Share on other sites More sharing options...
php? Posted December 31, 2007 Author Share Posted December 31, 2007 Separating it into separate parts can be really confusing at times. Some people prefer to see more details but i agree that i should shorten it down a bit. Quote Link to comment https://forums.phpfreaks.com/topic/83823-sending-data/#findComment-426534 Share on other sites More sharing options...
asmith Posted December 31, 2007 Share Posted December 31, 2007 i can help you about it, but you must first specify which part you want to start coding . then again do not look at the whole process , sometimes problems and "hows" of a whole process will make you delay and delay... just pick a part of it , and focus . Quote Link to comment https://forums.phpfreaks.com/topic/83823-sending-data/#findComment-426538 Share on other sites More sharing options...
php? Posted December 31, 2007 Author Share Posted December 31, 2007 Alrighty let me edit my first post Quote Link to comment https://forums.phpfreaks.com/topic/83823-sending-data/#findComment-426542 Share on other sites More sharing options...
asmith Posted December 31, 2007 Share Posted December 31, 2007 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 . Quote Link to comment https://forums.phpfreaks.com/topic/83823-sending-data/#findComment-426550 Share on other sites More sharing options...
php? Posted December 31, 2007 Author Share Posted December 31, 2007 Okay so i make a table called users with 4 fields... I enter the field names: username, password, email, and status. I click 'save' and it says "this is not a number" Quote Link to comment https://forums.phpfreaks.com/topic/83823-sending-data/#findComment-426556 Share on other sites More sharing options...
Northern Flame Posted December 31, 2007 Share Posted December 31, 2007 how exactly did you make the fields? did you use VARCHAR? and did you enter a number? Quote Link to comment https://forums.phpfreaks.com/topic/83823-sending-data/#findComment-426561 Share on other sites More sharing options...
asmith Posted December 31, 2007 Share Posted December 31, 2007 i assume your first post code is just a sample, give us your original code . (where is save button ? the button in your first post code is "register") Quote Link to comment https://forums.phpfreaks.com/topic/83823-sending-data/#findComment-426565 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.