This is a discussion on "found solution on this forum now have new error!" within the PHP Forum section. This forum, and the thread "found solution on this forum now have new error! are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
found solution on this forum now have new error!
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
found solution on this forum now have new error!
I used a tutorial to make an email form using php.
First I was only recieving 1 piece of info from the form in the email, then i was recieving an error message but I thought I had found the solution here http://www.webforumz.com/php-forum/8...il-expects.htm But now I recieve this error message "Parse error: syntax error, unexpected T_ELSE in D:\vhosts\solidmasonry.co.nz\httpdocs\sendmail.php on line 34" the code i'm using is
I'm a complete virgin to php! |
|
|
|
#2
|
||||
|
||||
|
Re: found solution on this forum now have new error!
} <--- (Remove this curly brace
$embody = "$title $firstname $lastname $email $location $locother $message $findus";
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
|
|
#3
|
|||
|
|||
|
Re: found solution on this forum now have new error!
tried removing the curly bracket but still getting the same error message!
Any other suggestions?? |
|
#4
|
||||
|
||||
|
Re: found solution on this forum now have new error!
Add curly brace there --> }else {
mail( "Myemail@gmail.com", "Quote Form", $message $embody, "From
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
|
|
#5
|
|||
|
|||
|
Re: found solution on this forum now have new error!
now it says the error is on line 36!!
AAAAAAARRRRRRRGGGGGGGGGHHHHHHH!!!!!!!! |
|
#6
|
||||
|
||||
|
Re: found solution on this forum now have new error!
Few deep breaths -- everyone gets an annoying but or 30
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
|
|
#7
|
|||
|
|||
|
Re: found solution on this forum now have new error!
Parse error: syntax error, unexpected T_VARIABLE in D:\vhosts\solidmasonry.co.nz\httpdocs\sendmail.php on line 70
Line 70 is mail( "Myemail@gmail.com", "Quote Form", |
|
#8
|
||||
|
||||
|
Re: found solution on this forum now have new error!
add a fullstop between $message and $embody
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
|
|
#9
|
|||
|
|||
|
Re: found solution on this forum now have new error!
New error message
Warning: Cannot modify header information - headers already sent by (output started at D:\vhosts\solidmasonry.co.nz\httpdocs\sendmail.php :2) in D:\vhosts\solidmasonry.co.nz\httpdocs\sendmail.php on line 71 |
|
#10
|
||||
|
||||
|
Re: found solution on this forum now have new error!
put ob_start(); at the top of your code and ob_end_flush just after the header.
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
#11
|
|||
|
|||
|
Re: found solution on this forum now have new error!
This is doing my head in now!
this is the code for the form
Somebody HELP please *flutters eyelashes* |
|
#12
|
||||
|
||||
|
Re: found solution on this forum now have new error!
Did you do what I just said? Any errors?
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
#13
|
|||
|
|||
|
Re: found solution on this forum now have new error!
I think I did what you said
Fatal error: Call to undefined function: start() in D:\vhosts\solidmasonry.co.nz\httpdocs\sendmail.php on line 4 maybe i misunderstood your instructions |
|
#14
|
||||
|
||||
|
Re: found solution on this forum now have new error!
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
#15
|
|||
|
|||
|
Re: found solution on this forum now have new error!
changed that sorry
Error message Warning: Cannot modify header information - headers already sent by (output started at D:\vhosts\solidmasonry.co.nz\httpdocs\sendmail.php :2) in D:\vhosts\solidmasonry.co.nz\httpdocs\sendmail.php on line 73 |