RE: [PHP] Newbie ?: form mailer not working
Chris, Thank you.. that along with one other change solved it... I am just doing additional test emails now! It look like the editor I use replaced some of the " and > with html code somehow. Does anyone have any suggestions (or links to) for a good php editor? I use MS Interdev for the ASP and HTML that I do, and I do have WinEdit, but not sure if it is the best choice out there? TIA Michelle -Original Message- From: "Chris Mulcahy" <[EMAIL PROTECTED]> To: "'PHP List'" <[EMAIL PROTECTED]> Date: Tue, 4 Sep 2001 16:30:05 -0500 Subject: RE: [PHP] Newbie ?: form mailer not working > Michelle: > > This line seems to be a problem. > > print("If the problem persists you can mail your question directly to > mailto:[EMAIL PROTECTED]\%22";>the forum > administrator"); > > Try escaping your quotes surrounding your mailto href. > > hth > > Happy programming! > Chris Mulcahy > > > > -Original Message- > > From: Michelle Marcicki [mailto:[EMAIL PROTECTED]] > > Sent: Tuesday, September 04, 2001 3:26 PM > > To: PHP List > > Subject: [PHP] Newbie ?: form mailer not working -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Newbie ?: form mailer not working
Michelle: This line seems to be a problem. print("If the problem persists you can mail your question directly to mailto:[EMAIL PROTECTED]\%22";>the forum administrator"); Try escaping your quotes surrounding your mailto href. hth Happy programming! Chris Mulcahy > -Original Message- > From: Michelle Marcicki [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, September 04, 2001 3:26 PM > To: PHP List > Subject: [PHP] Newbie ?: form mailer not working > > > Hi all... > > Having problems with some php3 to php4 stuff.. the site has > a form that has > been setup to ask questions outside our discussion forums. > > The form.html contains method="post"> > > The questionmailer code is as below. I have only changed the > email addy and the > file extension from .php3 to .php on the questionmailer file > and the .php > (above) in the form.html page. I have checked the php > on-line manual, but can > find nothing that fits my problems or errors. > > I am getting: > 1) Warning: Unexpected character in input: '\' (ASCII=92) state=1 in > /usr/home/blah/html/util/questionmailer.php on line 24 > 2) Parse error: parse error in > /usr/home/erc/html/util/questionmailer.php on > line 24 > > Line 24 in my code is: mailto:[EMAIL PROTECTED]\%22";> > > > //questionmailer.php code > > >$mailSubject="Question" ; > $mailBody="Name: $name \r\n" ; > $mailBody .="Email: $email \r\n" ; > $mailBody .="Question: $question \r\n" ; > > if(mail($mailTo, $mailSubject, $mailBody)) > { > print("Thank-You, your request has been sent."); > } > else > { > print("There was a problem transporting your > request, please try > again.\n"); > print("If the problem persists you can mail your > question directly >to mailto:[EMAIL PROTECTED]\%22";> > the forum administrator"); > } > ?> > > > > Is there something I'm missing here? > (I am coming from an ASP background, with VB and some C++ > knowledge, so it all > looks familiar, I am just trying to sort out syntax and think > it must be that > type of error. I didn't write the original code, just trying > to fix it all :) > > TIA. > Michelle > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Newbie ?: form mailer not working
Hi all... Having problems with some php3 to php4 stuff.. the site has a form that has been setup to ask questions outside our discussion forums. The form.html contains The questionmailer code is as below. I have only changed the email addy and the file extension from .php3 to .php on the questionmailer file and the .php (above) in the form.html page. I have checked the php on-line manual, but can find nothing that fits my problems or errors. I am getting: 1) Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /usr/home/blah/html/util/questionmailer.php on line 24 2) Parse error: parse error in /usr/home/erc/html/util/questionmailer.php on line 24 Line 24 in my code is: mailto:[EMAIL PROTECTED]\%22";> //questionmailer.php code mailto:[EMAIL PROTECTED]\%22";> the forum administrator"); } ?> Is there something I'm missing here? (I am coming from an ASP background, with VB and some C++ knowledge, so it all looks familiar, I am just trying to sort out syntax and think it must be that type of error. I didn't write the original code, just trying to fix it all :) TIA. Michelle -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]