justin15 Posted June 11, 2006 Share Posted June 11, 2006 Ok, well, as you all know by now, I am a PHP newb, and I am making the Contact Me Script.I have the main part done, well almost (Thats not including the 2 extras I want to add)So, now That you can input your information, vaildate that the information is correct, I need that information to be saved to a text file, and e-mailed to a e-mail account.You can see the script here.[a href=\"http://24.215.127.102/PHP/comment/\" target=\"_blank\"]Click here[/a]After I get this, the script will be done and ready, then I can try and add my little features.You guys, and girls, have been a big help ! Quote Link to comment https://forums.phpfreaks.com/topic/11710-almost-done-the-main-script/ Share on other sites More sharing options...
maexus Posted June 11, 2006 Share Posted June 11, 2006 Not to spam my own stuff but..[a href=\"http://maex-media.com/shoutxt/\" target=\"_blank\"]http://maex-media.com/shoutxt/[/a]If you want the source, email me at maexus@gmail.com. Works great with PHP4 or 5 Quote Link to comment https://forums.phpfreaks.com/topic/11710-almost-done-the-main-script/#findComment-44300 Share on other sites More sharing options...
wildteen88 Posted June 11, 2006 Share Posted June 11, 2006 justin15 you should include some from of form validation rather than getting the user to check whether the information is correct for example, check whether the user has field in the Name and Comment Fields and if they have provided an email address make sure it is a valid address. If they didnt fill in the name or comment field you should display a message and if their email address isn't valid show a message. Quote Link to comment https://forums.phpfreaks.com/topic/11710-almost-done-the-main-script/#findComment-44310 Share on other sites More sharing options...
justin15 Posted June 11, 2006 Author Share Posted June 11, 2006 I want to do that, but I got no reply on how to make that, I want to try and make this script simple so I understand it, but I want to have a good script. Quote Link to comment https://forums.phpfreaks.com/topic/11710-almost-done-the-main-script/#findComment-44424 Share on other sites More sharing options...
legohead6 Posted June 12, 2006 Share Posted June 12, 2006 [!--quoteo(post=382657:date=Jun 11 2006, 04:36 PM:name=justin15)--][div class=\'quotetop\']QUOTE(justin15 @ Jun 11 2006, 04:36 PM) [snapback]382657[/snapback][/div][div class=\'quotemain\'][!--quotec--]I want to do that, but I got no reply on how to make that, I want to try and make this script simple so I understand it, but I want to have a good script.[/quote]something along these lines would do it! ive put an array in there but you could just use echo[code]if(empty($_POST['name'])){ $errors[] = '<p><font color=\"yellow\">*Please enter a ..........</font></p>'; }else{ $name=$_POST['name']; }[/code] Quote Link to comment https://forums.phpfreaks.com/topic/11710-almost-done-the-main-script/#findComment-44465 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.