Forums

Problem when input text with double quote

whmok 07 May, 2009
I have created a form for user to create their notice. There is a problem if the user includes double quotes " " in the text fields. How can I alter the code to let users input double quotes?

Thanks a lot.

Regards,
Victor
Max_admin 08 May, 2009
Hi Victor,

I can't understand, how to create "their notice" ?

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

I think the problem here is double quotes used in a textarea.

Later: No - I checked double quotes in Textarea and in Text input and there are no problems with either the email or the database save with RC5.0

Bob
whmok 09 May, 2009

Hi Max,

I think the problem here is double quotes used in a textarea.

Later: No - I checked double quotes in Textarea and in Text input and there are no problems with either the email or the database save with RC5.0

Bob



Hi Bob,

Yes that is what i meant.

I have tried to update ChronoForm to RC5 but I have got the message "LOADING FAILED::CustomCode Class" comes up. As we need to do a testing session last week, I have put RC4.11 back to my site. Do you have any idea why the message comes up when I installed RC5? Or you think I have to re-create all the forms after install RC5?

Regards,
Victor
whmok 09 May, 2009
I have installed RC5 back and just tested the form with the double quote in the textarea but all the message after the double quote doesn't go through to the database. 😢
Max_admin 10 May, 2009
Hi whmok,

Does it get emailed ?

I think that RC5.1 will fix the problem of "Loading failed" but I'm afraid it will have the same issue with the quotes because I think this is either a Joomla issue or your server issue, which Joomla version do you have ?

Cheers
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
whmok 11 May, 2009
I'm using Version 1.5.10
I didn't set email to be sent after the form submit so I'm not sure if the full message will be sent out.
Max_admin 12 May, 2009
Ok, lets try to send the form in an email and see if the whole data will be sent or partial one!

let us know!

Cheers
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
whmok 26 May, 2009

Ok, lets try to send the form in an email and see if the whole data will be sent or partial one!

let us know!

Cheers
Max



Hi Max,

I have tried to put a code on the "onSubmit" section to print out the php value from the form. It shows properly in the confirmation page but once it has been submitted, the stored value stops before the double quote.

My code used as below to print the value in the thank you page:

echo "title.... ".$title."<br/>";
echo "title2..... ".str_replace('"', '\"', $title);


No matter the first one or the second one.. For example, my input value is:

This is with "double quote"

The value will only shows as:

This is with

So even I tried to replace the " into \" by php function, it won't work. Can you please help me to fix this issue as this also affects to the other area which lets users to put hyperlinks in. Thank you very much!

Regards,
Victor
Max_admin 28 May, 2009
Hi Victor,

I think this is related to the server magic quotes settings, please send a message to your host admin and ask them for advice and let me know what they say!

Cheers
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
whmok 28 May, 2009

Hi Victor,

I think this is related to the server magic quotes settings, please send a message to your host admin and ask them for advice and let me know what they say!

Cheers
Max



Hi Max,

I have just figured out that the confirmation page plugin cause the problem. I had just simply put HTML code into the confirmation page before and then every entry to the database will be missed once it met the double quote sign. Is there any update to this plugin or some other way to code the confirmation page to get rid of this problem?

Cheers,
Victor
Max_admin 01 Jun, 2009
Hi Victor,

I will check this!

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Max_admin 05 Jun, 2009
Hi Victor,

Please test this in RC5.1 released yesterday, if it didn't work fine then please backup your form and send it to me AND show me the code you have in the confirmation page plugin text box and I will test it!

Regards
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.