Jump to content

Archived

This topic is now archived and is closed to further replies.

justin15

Almost done the main script

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 !

Share this post


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

Share this post


Link to post
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.

Share this post


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

Share this post


Link to post
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]

Share this post


Link to post
Share on other sites

×

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.