NogDog;10987717 wrote:I just gave it a quick, cursory glance. First thing I noticed was a number of syntax errors. Right now I don't imagine you get any further than a fatal parse error.
$subject = ("RSVP Form"\\n","From: $name <$email>");
...should be more like:
$subject = "RSVP Form\nFrom: $name <$email>";
The directional quotes in this line should be changed to "straight" quotes:
ini_set (‘sendmail_from’, ‘again my email will be here’);
...should be:
ini_set ('sendmail_from', 'again my email will be here');
This line has a "}" that instead should be a "]":
$zip = $_POST['zip'};
...should be:
$zip = $_POST['zip'];
You forgot the parentheses around the function call arguments here:
$email = check_input $_POST['email'];
...should be:
$email = check_input($_POST['email']);
...and so on...
I'd suggest getting your hands on a decent code editor that includes built-in syntax checking. (I use Komodo Edit, but there are many other good possibilities, too.)
Thank you so much NOG DOG,
I have heard that forums can be very unfriendly to newbies, and this is my first forum join - it is obvious though, this is a great forum with a bunch of friendly and wonderful members - how cool!
So, first thanks for the tip about the editor software, will look into this today and see which I prefer (probably take your suggestion since I knew nothing about this to begin-
Second, thanks for briefly viewing my file and showing me how I need to check for some syntaxt errors and for pointing out a few - this will make it easier to take a look at the other file and find similar errors -
and now, I am wondering about the script itself. I have viewed so many source codes that perhaps my brain is getting all wired and confused, and so what I am hoping is that someone will tell me if I have used the proper codes and it I have too many codes (for instance, is there something I could have left off, should have added, wrong codes to begin with, etc.
is there something else I can post that would be helpful to members to help me with my plea?
again NOG DOG, thanks so much for helping me here.
d