Forums

Form not sending or adding into database

james_sgp 04 May, 2008
I have an enrollment form, with an email template and some java validation. But for some reason it isn`t sending any emails or adding the data into the database...

I`m rally stuck, I can`t find anything wrong!

:( [file name=Enrollment.cfbak size=18141]http://www.chronoengine.com/components/com_fireboard/uploaded/files/Enrollment.cfbak[/file]
GreyHead 04 May, 2008
Hi james_sgp,

I can't see anything obviously wrong but I bot 404 errors on submission until I removed both the date fields and the select box (I'm not sure which one caused the problem though). I did notice that the select box seems to have a reset button that might cause a conflict.

I suggest that you turn debug on, comment out most of your form then go through adding back one field at a time until it shows and Email sent result.

Bob
james_sgp 04 May, 2008
Bob,
I was full of hope after reading your message. I removed the date pickers and just put plain text boxes, but I still get the same problem?

James
GreyHead 04 May, 2008
Hi James,

If you take the select box out what happens?

Bob
james_sgp 04 May, 2008
The same thing, when I submit the form I get a page saying:

The page you are trying to access does not exist.
Please select a page from the main menu.

And do not get any email sent or data written into the database.
james_sgp 05 May, 2008
Bob,

Figured it out...the form is now working properly. It was all down to the name of my selection box, I`d designed it in Dreamweaver and called it 'option' everything was fine. But Joomla didn`t like it, I assume as it was using it as another variable.

Thanks for your support.

James
Max_admin 05 May, 2008
And another user used another reserved joomla variable 'task', I think I will add some check for reserved fields names, thanks for letting us know🙂

Cheers

MAx
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
GreyHead 05 May, 2008
Hi James,

Cool - I didn't spot that, one more thing to look out for.

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