Forums

Form not submitting and give no debug info

obrowne 15 Aug, 2011
Hi,
I created a form that looks fine, but is not working.
The form can be seen here: http://www.o-line-webs.nl/salsafran/cursus-aanbod/algemenen-aanmeldingsformulier.html (website login.. user: guest pw: Pass1n)(Joomla admin login: guest pw: Pass1n)

Goal:
The form is meant to submit data an an eventual upload
The form name is sf_aanmelden

Done:
I have read the manuals / tutorials and created the form accordingly.

Symtoms:
1) the form does not submit data.
2) the form (when in debug mode) does not generate debug info (it's as if the form crashes)
3) The only output the form generates is a partially pink rectangle containing the number 1.
4) The data in the e-mail field gets replaced by (php?)code.

Can anyone recognise this problem? i can not figure it out!
Thanks in advance.

environment:
Joomla 1.5.23
Chronocontact v3.2
GreyHead 15 Aug, 2011
Hi obrowne,

You have a dash '-' in some of your input names. Dashes give ChronoForms and MySQL problems. Please rename the input using only [a-z], [A-Z], [0-9] or underscore '_'. No dashes, spaces or other special characters.
<input class="cf_inputbox required" maxlength="150" size="30" title="*!" id="text_6" name="gb-datum" type="text">


Bob
obrowne 15 Aug, 2011
Wow!

could it be that simple?
I will try this solution and advise...
Thanks for your reply!

Orlando
obrowne 15 Aug, 2011

Hi obrowne,

You have a dash '-' in some of your input names. Dashes give ChronoForms and MySQL problems. Please rename the input using only [a-z], [A-Z], [0-9] or underscore '_'. No dashes, spaces or other special characters.

<input class="cf_inputbox required" maxlength="150" size="30" title="*!" id="text_6" name="gb-datum" type="text">


Bob



Hi Bob,

I'm sorry to say that the above proposed soution did not work.
I changed all field names containing a dash [ - ] to underscore [ _ ].
But sadly the problem persists 😟

Orlando
obrowne 15 Aug, 2011
Question in this case...

Does Chronoforms generate any other code that relates to the HTML-form-code that is generated?

The reason why i ask this is, that when rechecking the html-code that was initially generated i discovered a fild name as follows: check2[]. Which i found to be odd. so i manually changed it in the html form-code to check2. Could it be that by doing this i broke somthing in the code-structure?

Orlando
GreyHead 15 Aug, 2011
Hi Orlando,

Names with [] are array names - that is they can return multiple results in an array. They are most often used with checkbox groups and multi-select drop-downs. I don't think that changing it would break the form though - you'd just get a single result instead of the array of results.

I'll take another look in a few minutes.

Bob

PD You don't need the [] for a single checkbox - e.g. one used for 'I agree to xyz'.
obrowne 15 Aug, 2011
Ok Bob,

thanks for that info.
I will put back the [].
Because i do need multiple results for that particular field.

Orlando
GreyHead 15 Aug, 2011
Hi Orlando,

Is this the latest ChronoForms version 3.2?

If so there's a bug in the File upload code. Please see this post.

Bob
obrowne 15 Aug, 2011
Hi Bob,

That did it! Thanks!

I still need to test if i can really upload files, but the form is submitting now!
is there a debugged version 3.2 on the site at the moment? If so, I will upgrade immediately so i do not run into this challenge again.

orlando
GreyHead 15 Aug, 2011
Hi Orlando,

No there isn't, at least not that I know of. I don't have access to Max's master files so can't reliably post a full fix.

Bob
obrowne 15 Aug, 2011
Hmmm..

Form data submission is a-ok now.

However the attachment of an uploaded file is no success!.
In the debug it is said that the file uploaded crrectly! (see debug syntax below)
============
Form passed first SPAM check OK
Form passed the submissions limit (if enabled) OK
Form passed the Image verification (if enabled) OK
Form passed the server side validation (if enabled) OK
$_POST Array: Array ( [radio0] => Dhr. [va_naam] => Orlando browne [gb_datum] => 12-05-1969 [email] => [email]orlando.browne@gmail.com[/email] [adres_nummer] => Isebrandtsheerd 33 [postcode] => 9737LH [woonplaats] => Groningen [tel_mob] => 0655767378 [radio1] => Scholier/student* (110 euro) [cursusmaand] => maart [cursusjaar] => 2034 [cursusnivo] => Salsa beginners 1 [gewenstedag] => Woensdag [gewensteuur] => 19.00 uur [check2] => Array ( [0] => Salsa beginners 2 ) [gevonden] => via internet [button_26] => Verzenden [ffcc59ba5c5390452209862b1ce27ef1] => 1 [1cf1] => 8c062c39a3bb63366f868218d3ce9bbf [chronoformname] => sf_aanmelden )
$_FILES Array: Array ( [upload] => Array ( [name] => Test doc voor upload.pdf [type] => application/pdf [tmp_name] => /tmp/phpliDDYT [error] => 0 [size] => 84842 ) )
Upload routine started for file upload by : upload
..\httpdocs\salsafran\components\com_chronocontact\uploads\sf_aanmelden\20110815180107_Test doc voor upload.pdf has been uploaded OK
Form passed the plugins step (if enabled) OK
An email has been SENT successfully from ()orlando.browne@gmail.com to [email]info@ikwilsalsadansen.nl[/email],obrowne@planet.nl
Debug End
obrowne 15 Aug, 2011
hi all,

Disregard last comment.
Found the mistake!
Which was this:
..\httpdocs\salsafran\components\com_chronocontact\uploads\sf_aanmelden\
SHOULD BE:
../httpdocs/salsafran/components/com_chronocontact/uploads/sf_aanmelden/

All works wel now 😀
This topic is locked and no more replies can be posted.