Jump to content

Almost done the main script


justin15

Recommended Posts

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 !
Link to comment
Share on other sites

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.
Link to comment
Share on other sites

[!--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]
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.