Log in

View Full Version : dagon php form mailer help



traq
06-10-2008, 09:29 PM
I'm hoping someone can help me with this:

I downloaded a PHP form mailer from Dagon Design (http://www.dagondesign.com/articles/secure-php-form-mailer-script/#download), customized, and installed it. Everything worked great.

Earlier this week, I tried to change some of the css (I wanted to add a background image), and after I uploaded the new css file, the main php file stopped working. I get this error: [/code]
Parse error: syntax error, unexpected T_STRING in /homepages/5/d193019464/htdocs/seascouts/dd-formmailer/ct-formmailer.php on line 68[/code]
Line 68 is one of the text fields, and as far as I could tell, was properly formatted and hadn't been changed from the original. But, I decided to cut my loses and restore the original css. However, that didn't fix it.

I have gotten to the point now where I have downloaded a "clean" copy of everything from Dagon Designs and completely rebuilt and replaced everything, but I'm still getting the same error message.

(I'm also asking Dagon Design for help, but I figured I could ask here, too, in case anyone knew of a fix. Thanks very much.) This page in question is here (http://seascouts.arrowheadsps.org/dd-formmailer/ct-formmailer.php).

thetestingsite
06-10-2008, 09:51 PM
Can you post the code for ct-formmailer.php. I downloaded the original files from Dagon Design and they only have dd-formmailer.php (which works perfectly out of the box when I uploaded to my server).

traq
06-10-2008, 10:12 PM
sorry 'bout that. All I changed were the options. (file paths, form fields, email etc.)

code is too long to post on the forum, so click here (txt file) (http://sandbox.arrowheadsps.org/ct-formmailerphp_code.txt).

thetestingsite
06-10-2008, 10:15 PM
The issue was that you used single quotes without escaping them. Try the following code:

http://thetestingsite.net/test/dd/trag/ct-formmailer.phps

Hope this helps.

traq
06-11-2008, 12:51 AM
the quotes you're referring to are the ones surrounding the "$form_struct" variable, correct? Is that the only thing you corrected?

Thanks very much!

dissonantallure
02-10-2009, 12:00 AM
Can anyone help me with Dagon Design's Form Mailer. I want use radio buttons to ask a question like "Are you an artist?" "yes" "no". Now, If you click yes, it will re-direct you to a new page. I know how to add an onclick function to standard html, but i don't know how to add it to dagons form mailer. I would like to add in a new variable called onclick= which you can add under $form_struct such as type=|req=| etc.. and then give a command like open.newpage.php. Im a new bee at php so can anyone please help me. Is this even possible? Thanks in advance.