nitharsanke Posted April 26, 2007 Share Posted April 26, 2007 Hi I need help with form. Ok so this is what i want it to do. I have a form that asks the user what type of sig u want, when do u want it by, and what color. Now I want this saved in a new php file where i can go it and see what the users have submitted. Please help. An example: Form +++++ Your name: What type of signature: Color: Picture URL: Submit Theprocess.php ++++++++++++ ok so this is where it says Thanks for submitting your request! I want this request to be saved in another file, say therequests.php with all those information the user requested. therequests.php Your name: Tim What type of signature: Game Color: Red Picture URL: http://www.err.com/ta.gif --------- help would be GREATLY appreicated! Quote Link to comment https://forums.phpfreaks.com/topic/48718-need-help-with-form-please/ Share on other sites More sharing options...
john010117 Posted April 26, 2007 Share Posted April 26, 2007 Why do you need to save it in a php file? Sending the data to your e-mail is MUCH easier (I believe). Quote Link to comment https://forums.phpfreaks.com/topic/48718-need-help-with-form-please/#findComment-238748 Share on other sites More sharing options...
sw0o0sh Posted April 26, 2007 Share Posted April 26, 2007 Not everybodys mailing server is the best, and an SMTP can be difficult, and perhaps the user has no access to SQL and prefers to do things a bit more manually due to a smaller site or something. Anyway, what you are looking at here is, fopen(),fwrite(),and fclose(). error_reporting(0); $r = fopen ($_POST['name'].rand(0,255).'txt','x+'); fwrite($r, " Name = ".$_POST[name]."\r\n What Type of Signature = ".$_POST[signature]."\r\n Color= ".$_POST[color]."\r\n Picture Url = ".$_POST[picurl]."\r\n "); fclose($r); Quote Link to comment https://forums.phpfreaks.com/topic/48718-need-help-with-form-please/#findComment-238754 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.