Forums

syntax error and cant get verification email

kurtzzzz 05 Feb, 2008
I am getting this error:
Parse error: syntax error, unexpected ')' in com_chronocontact/chronocontact.php(485) : eval()'d code on line 13

as a result only the ip address is getting sent in the email. None of the fields are sending

Also I am having trouble with the after submit code. I am not recieving an email.

this is the code that I am using:
<?php
$from = $replyto_email ="portal@creativecoreny.com";
$fromname  = "Creative Core New York";
$recipient = $_POST['Email'];
$subject = "Thankyou For Contacting The Regional Alliance";

$html_message = "<p>We have receveived your request for information and
will be contacting you shortly.</p>";

$Contact_Name = $_POST['Name'];
$Email = $_POST['Email'];
thanks
dk<br><br>Post edited by: GreyHead, at: 2008/02/05 16:40
GreyHead 05 Feb, 2008
Hi dk,

The error refers this code chunk and to line 13 - but there aren't 13 lines. One problem may be that you need to add a closing ?> tag.

But there is alos nothing here that will send an email; so I'm curious what you are trying to do? You only need this kind of code if you want to send two different emails - maybe one to you with all the details and a second to the submitter saying thanks.

If you are sending only one then you can delete all of this. If you want to send two then check the postings here for the full syntax (I think it's a call to mosMail that you are missing).

Bob
kurtzzzz 05 Feb, 2008
Thanks for getting back to me so quickly,
as for question number 1, where are you refering to that the closing tag needs to be added:

question number 2, sorry I forgot to add the full code its ( I do have the call to mosMail):
<?php
$from = $replyto_email ="portal@creativecoreny.com";
$fromname  = "Creative Core New York";
$recipient = $_POST['Email'];
$subject = "Thankyou For Contacting The Regional Alliance";

$html_message = "<p>We have received your request for information and
will be contacting you shortly.</p>";

$Contact_Name = $_POST['Name'];
$Email = $_POST['Email'];

mosMail($from, $fromname, $recipient, $subject, $html_message, true, $Email, $Contact_Name,);
?>
<br><br>Post edited by: GreyHead, at: 2008/02/05 18:27
GreyHead 05 Feb, 2008
Hi dk,

That's better, and the closing tag is there too . . . and we have a line 13! Try taking out that comma before the closing bracket ",)"

If that doesn't work then you probably need more parameters in the function call.

Bob<br><br>Post edited by: GreyHead, at: 2008/02/05 18:29
kurtzzzz 05 Feb, 2008
Thanks Bob, that got it the ','. I have one last problem to solve then its all good. I am still only getting an ip address sent. None of my form fields are sending there info.

DK
GreyHead 06 Feb, 2008
Hi dk,

Sound like you may have your form set to use a template and haven't defined one?

If you like, take a Form Backup from the Form Manager and email it to me at the address in my sig and I'll take a look.

Bob
kurtzzzz 06 Feb, 2008
Thanks Bob Ive been woking on this all morning been through a lot of posts...tried a lot of things still no form. Im attaching...But where do you define the template? [file name=Regional_Alliance_Contact.cfbak size=7589]http://www.chronoengine.com/components/com_fireboard/uploaded/files/Regional_Alliance_Contact.cfbak[/file]
GreyHead 06 Feb, 2008
Hi dk,

You've got "In which format to send the results email" (in the General tab) set to 'My Template' but the template (bottom of the Form Code tab) is empty.

Try re-setting "In which format to send the results email" to "Fields Titles" and you should start seeing values again.

Bob
kurtzzzz 06 Feb, 2008
Bob

:blush: wow do I fell like a bumb-a@#-- that did it. thanks for all your help.

your the greatest.

dk
GreyHead 06 Feb, 2008
Hi dk,

You are welcome😉

Bob
This topic is locked and no more replies can be posted.