Re: [PHP] Newbie "Parse" error

2002-09-02 Thread eriol

Use a closing "?>" php tag before writing your html and after your mail()
function.. Also, in your first $mailheaders variable, you may want to add a ":"
after "From"..

HTH..

Take care.. peace..
eriol



"Chase Knott" <[EMAIL PROTECTED]> disgorged:

: Maybe you can help me with YOUR eyes again...  Now I am getting this
: error...
:
: Parse error: parse error, unexpected '<' in send_contact_form.php on line 18
:
: This will be around the "" line...



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Newbie "Parse" error

2002-09-02 Thread Chase Knott

I thank you...  I love these newsgroups, but I tend to feel REALLY 
stupid when the answer comes...  Thanks again!

Chase

[EMAIL PROTECTED] wrote:

> You have forgotten a ?> before your HTML starts.
> 
> / Martin
> 
> Citat Chase Knott <[EMAIL PROTECTED]>:
> 
> 
>>Maybe you can help me with YOUR eyes again...  Now I am getting this 
>>error...
>>
>>Parse error: parse error, unexpected '<' in send_contact_form.php on
>>line 18
>>
>>This will be around the "" line...
>>
>>
>>John Wards wrote:
>>
>>
>>>$subject = "Message From MCV Contact Form"
>>> you have missed out a ; on the above line
>>>
>>>use your eyes...:-)
>>>
>>>John
>>>- Original Message - 
>>>From: "Chase Knott" <[EMAIL PROTECTED]>
>>>To: <[EMAIL PROTECTED]>
>>>Sent: Monday, September 02, 2002 4:18 PM
>>>Subject: [PHP] Newbie "Parse" error
>>>
>>>
>>>
>>>
>>>>I am sure that someone here can see somehting that I am too stupid
>>>>
>>to... 
>>
>>>> Here is my error:
>>>>
>>>>Parse error: parse error, unexpected T_VARIABLE in
>>>>
>>send_contact_form.php 
>>
>>>>on line 13
>>>>
>>>>Here is the code for the page:
>>>>
>>>>>>>
>>>>$msg = "E-Mail From MCV Contact Form\n";
>>>>$msg .= "Sender's Name: \t$sender.name\n";
>>>>$msg .= "Sender's E-Mail Address: \t$sender.email\n";
>>>>$msg .= "Sender's Subject: \t$sender.subject\n";
>>>>$msg .- "Sender's Message: \t$sender.message\n\n";
>>>>
>>>>$to = "\t$recipient";
>>>>
>>>>$subject = "Message From MCV Contact Form"
>>>>
>>>>$mailheaders = "From MyComputerVendor\n";
>>>>$mailheaders .= "Reply-To: $sender.email\n\n";
>>>>
>>>>mail($to, $subject, $msg, $mailheaders);
>>>>
>>>>
>>>>
>>>>Message Sent!
>>>>
>>>>
>>>>
>>>>The Following Message Was Sent To: 
>>>>Name:
>>>>
>>>>E-Mail Address:
>>>>
>>>>Subject:
>>>>
>>>>Message:
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>-- 
>>>>PHP General Mailing List (http://www.php.net/)
>>>>To unsubscribe, visit: http://www.php.net/unsub.php
>>>>
>>>>
>>
>>-- 
>>PHP General Mailing List (http://www.php.net/)
>>To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>>
> 
> 
> 
> mvh
> 
> Martin Hjort Eriksen
> Studenterrådet, Roskilde Universitetscenter
> - Slut på videresendt brev -
> 
> 
> 
> mvh
> 
> Martin Hjort Eriksen
> Studenterrådet, Roskilde Universitetscenter
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Newbie "Parse" error

2002-09-02 Thread mhe


You have forgotten a ?> before your HTML starts.

/ Martin

Citat Chase Knott <[EMAIL PROTECTED]>:

> Maybe you can help me with YOUR eyes again...  Now I am getting this 
> error...
> 
> Parse error: parse error, unexpected '<' in send_contact_form.php on
> line 18
> 
> This will be around the "" line...
> 
> 
> John Wards wrote:
> 
> > $subject = "Message From MCV Contact Form"
> >  you have missed out a ; on the above line
> > 
> > use your eyes...:-)
> > 
> > John
> > - Original Message - 
> > From: "Chase Knott" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Monday, September 02, 2002 4:18 PM
> > Subject: [PHP] Newbie "Parse" error
> > 
> > 
> > 
> >>I am sure that someone here can see somehting that I am too stupid
> to... 
> >>  Here is my error:
> >>
> >>Parse error: parse error, unexpected T_VARIABLE in
> send_contact_form.php 
> >>on line 13
> >>
> >>Here is the code for the page:
> >>
> >> >>
> >>$msg = "E-Mail From MCV Contact Form\n";
> >>$msg .= "Sender's Name: \t$sender.name\n";
> >>$msg .= "Sender's E-Mail Address: \t$sender.email\n";
> >>$msg .= "Sender's Subject: \t$sender.subject\n";
> >>$msg .- "Sender's Message: \t$sender.message\n\n";
> >>
> >>$to = "\t$recipient";
> >>
> >>$subject = "Message From MCV Contact Form"
> >>
> >>$mailheaders = "From MyComputerVendor\n";
> >>$mailheaders .= "Reply-To: $sender.email\n\n";
> >>
> >>mail($to, $subject, $msg, $mailheaders);
> >>
> >>
> >>
> >>Message Sent!
> >>
> >>
> >>
> >>The Following Message Was Sent To: 
> >>Name:
> >>
> >>E-Mail Address:
> >>
> >>Subject:
> >>
> >>Message:
> >>
> >>
> >>
> >>
> >>
> >>
> >>-- 
> >>PHP General Mailing List (http://www.php.net/)
> >>To unsubscribe, visit: http://www.php.net/unsub.php
> >>
> > 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 



mvh

Martin Hjort Eriksen
Studenterrådet, Roskilde Universitetscenter
- Slut på videresendt brev -



mvh

Martin Hjort Eriksen
Studenterrådet, Roskilde Universitetscenter

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Newbie "Parse" error

2002-09-02 Thread Chase Knott

Maybe you can help me with YOUR eyes again...  Now I am getting this 
error...

Parse error: parse error, unexpected '<' in send_contact_form.php on line 18

This will be around the "" line...


John Wards wrote:

> $subject = "Message From MCV Contact Form"
>  you have missed out a ; on the above line
> 
> use your eyes...:-)
> 
> John
> - Original Message - 
> From: "Chase Knott" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, September 02, 2002 4:18 PM
> Subject: [PHP] Newbie "Parse" error
> 
> 
> 
>>I am sure that someone here can see somehting that I am too stupid to... 
>>  Here is my error:
>>
>>Parse error: parse error, unexpected T_VARIABLE in send_contact_form.php 
>>on line 13
>>
>>Here is the code for the page:
>>
>>>
>>$msg = "E-Mail From MCV Contact Form\n";
>>$msg .= "Sender's Name: \t$sender.name\n";
>>$msg .= "Sender's E-Mail Address: \t$sender.email\n";
>>$msg .= "Sender's Subject: \t$sender.subject\n";
>>$msg .- "Sender's Message: \t$sender.message\n\n";
>>
>>$to = "\t$recipient";
>>
>>$subject = "Message From MCV Contact Form"
>>
>>$mailheaders = "From MyComputerVendor\n";
>>$mailheaders .= "Reply-To: $sender.email\n\n";
>>
>>mail($to, $subject, $msg, $mailheaders);
>>
>>
>>
>>Message Sent!
>>
>>
>>
>>The Following Message Was Sent To: 
>>Name:
>>
>>E-Mail Address:
>>
>>Subject:
>>
>>Message:
>>
>>
>>
>>
>>
>>
>>-- 
>>PHP General Mailing List (http://www.php.net/)
>>To unsubscribe, visit: http://www.php.net/unsub.php
>>
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Newbie "Parse" error

2002-09-02 Thread John Wards

$subject = "Message From MCV Contact Form"
 you have missed out a ; on the above line

use your eyes...:-)

John
- Original Message - 
From: "Chase Knott" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 02, 2002 4:18 PM
Subject: [PHP] Newbie "Parse" error


> I am sure that someone here can see somehting that I am too stupid to... 
>   Here is my error:
> 
> Parse error: parse error, unexpected T_VARIABLE in send_contact_form.php 
> on line 13
> 
> Here is the code for the page:
> 
>  
> $msg = "E-Mail From MCV Contact Form\n";
> $msg .= "Sender's Name: \t$sender.name\n";
> $msg .= "Sender's E-Mail Address: \t$sender.email\n";
> $msg .= "Sender's Subject: \t$sender.subject\n";
> $msg .- "Sender's Message: \t$sender.message\n\n";
> 
> $to = "\t$recipient";
> 
> $subject = "Message From MCV Contact Form"
> 
> $mailheaders = "From MyComputerVendor\n";
> $mailheaders .= "Reply-To: $sender.email\n\n";
> 
> mail($to, $subject, $msg, $mailheaders);
> 
> 
> 
> Message Sent!
> 
> 
> 
> The Following Message Was Sent To: 
> Name:
> 
> E-Mail Address:
> 
> Subject:
> 
> Message:
> 
> 
> 
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Newbie "Parse" error

2002-09-02 Thread Chase Knott

I am sure that someone here can see somehting that I am too stupid to... 
  Here is my error:

Parse error: parse error, unexpected T_VARIABLE in send_contact_form.php 
on line 13

Here is the code for the page:



Message Sent!



The Following Message Was Sent To: 
Name:

E-Mail Address:

Subject:

Message:






-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php