This is a discussion on "PHP Form send in email" within the PHP Forum section. This forum, and the thread "PHP Form send in email are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
PHP Form send in email
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
PHP Form send in email
Hi everyone,
I need help in making a form, ive made the basic HTML sides of it. I need the PHP side, which will send the data input to the HTML Form to an email. Any help will be greatly appreciated as ive tried three times before and had errors. The form can be found here: www.southernheavenflorida.com/bookingform.html Thanks in advance for any help! |
|
|
|
#2
|
||||
|
||||
|
Re: PHP Form send in email
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
#3
|
|||
|
|||
|
Re: PHP Form send in email
Sorry, didnt think of searching the forum before posting because it slipped my mind
Sorry!! |
|
#4
|
||||
|
||||
|
Re: PHP Form send in email
Don't worry mate
But check the stickies before posting, they can usually help a lot!
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
#5
|
|||
|
|||
|
Re: PHP Form send in email
Yap, start by checking out my tutorial in the stickies.... Feel free to post any questions you may have!
Last Blog Entry: 10 Reasons Why My Laptop Is Better Than Your Girlfriend (Dec 15th, 2007)
|
|
#6
|
|||
|
|||
|
Re: PHP Form send in email
Ok, ive got an error.
if(count($_POST)>0) { // was something posted? Thats the error line, the error is: Parse error: syntax error, unexpected T_IF in /home/bravows1/public_html/southernheavenflorida.com/bookingform.php on line 12 Help please! |
|
#7
|
||||
|
||||
|
Re: PHP Form send in email
Could you post the lines either side of that too please.
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
#8
|
|||
|
|||
|
Re: PHP Form send in email
Sure, all the coding is just copied from the last bit of the tutorial.
Slightly edited it. Heres the code:
Last edited by c010depunkk; Jan 17th, 2008 at 06:17. Reason: please use [PHP] tags when posting PHP |
|
#9
|
||||
|
||||
|
Re: PHP Form send in email
That's odd, I can't spot an error there.
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
#10
|
|||
|
|||
|
Re: PHP Form send in email
Thats what i thought.
Heres the whole file,
Thanks for your help Alex. Last edited by c010depunkk; Jan 17th, 2008 at 06:18. Reason: please use [PHP] tags when posting PHP |
|
#11
|
||||
|
||||
|
Re: PHP Form send in email
Try replacing
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
#12
|
|||
|
|||
|
Re: PHP Form send in email
Same error, the if error. Dam
|
|
#13
|
||||
|
||||
|
Re: PHP Form send in email
Actually, line 12 for me is:
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
#14
|
|||
|
|||
|
Re: PHP Form send in email
Same damn error!
What gives? Its erroring on line 12: if($_POST)>0) { // was something posted? The only code above that is: <?php /****** PHP Form Mail *****/ // declare and initialize some variables $name=$email=$subject=$message=$error_message=''; $invalid_fields=array(); $required_fields=array('name','email','message'); $validated=array(); $to_address='admin@bravo-webspace.co.uk'; // your email address goes here But thats all correct? |
|
#15
|
||||
|
||||
|
Re: PHP Form send in email
Maybe Jan (c010depunkk) can help. He wrote the tutorial after all.
I have no idea why that is happening!
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|