Jump to content


Photo

Almost done the main script


  • Please log in to reply
4 replies to this topic

#1 justin15

justin15
  • Members
  • PipPip
  • Member
  • 11 posts

Posted 11 June 2006 - 01:50 PM

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 !

#2 maexus

maexus
  • Members
  • PipPipPip
  • Advanced Member
  • 191 posts

Posted 11 June 2006 - 03:42 PM

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


#3 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 11 June 2006 - 04:15 PM

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.

#4 justin15

justin15
  • Members
  • PipPip
  • Member
  • 11 posts

Posted 11 June 2006 - 09:36 PM

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.

#5 legohead6

legohead6
  • Members
  • PipPipPip
  • Advanced Member
  • 434 posts

Posted 12 June 2006 - 12:48 AM

[!--quoteo(post=382657:date=Jun 11 2006, 04:36 PM:name=justin15)--][div class=\'quotetop\']QUOTE(justin15 @ Jun 11 2006, 04:36 PM) View Post[/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
if(empty($_POST['name'])){
        $errors[] = '<p><font color=\"yellow\">*Please enter a ..........</font></p>';
        }else{
        $name=$_POST['name'];
        }

"Syntax error" .. WHERE THE **** IS IT?!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users