Form manager will not save form

broberts 17 Aug, 2008
Very strange, if the Form Code includes a closing </textarea> the form definition will not save. Clicking Save, Apply, or Cancel does nothing. If I simply remove the text "</textarea>" the buttons start working again. Any suggestions? The code is below:
<h3>Corporate Member</h3>
<p> 
</p>
<p><input type="hidden" value="Corporate" name="MemberType" id="MemberType"></p>
<p>Name<br><input size="80" name="Name" id="Name"></p>
<p>Contact Name<br><input size="80" name="ContactName" id="ContactName"></p>
<p>Contact Position<br><input size="80" value="Broker" name="ContactPosition" id="ContactPosition"></p>
<p>Web Site<br><input size="80" value="http://www.crepso.com" name="WebSite" id="WebSite"></p>
<p>EMail<br><input size="80" name="EMail" id="EMail"></p>
<p>Phone<br><input size="80" name="Phone" id="Phone"></p>
<p>Fax<br><input size="80" name="Fax" id="Fax"></p>
<p>Logo URL<br><input size="80" name="LogoURL" id="LogoURL"></p>
<p>Description<br><textarea name="Description" value="" rows="4" cols="80" id="Description"></textarea></p>
<p><br><br><input type="submit" value="Submit" name="submit"></p>
GreyHead 17 Aug, 2008
Hi broberts,

Try putting the type="text" attribute in the text input tags. Everything else looks OK to me.

Bob
broberts 17 Aug, 2008
I tried adding type="text" as suggested, made no difference.

The problem does seem definitely related to the tag </textarea>. < /textarea> works as far as saving is concerned. As does </ textarea>. </textarea > does not work.
Max_admin 17 Aug, 2008
Hi broberts,

I take your code and add it to the Form HTML box and save and its fine, I use FireFox 3.0, did you try with naother browser ?
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
broberts 17 Aug, 2008
I've tried it in Firefox 3 and IE 7. Same problem in both.

The form has a redirect url to a ChronoConnect page "index.php?option=com_chronoconnectivity&Itemid=28" and I've edited the AutoGenerate, below. Other than that it's all defaults.
<?php 
	$database =& JFactory::getDBO();

$database->setQuery( "INSERT INTO jos_crepso_members VALUES  (
     '' ,
     '".JRequest::getVar('MemberType', '', 'post', 'string', '')."',
     '".JRequest::getVar('Name','', 'post', 'string', '' )."' ,
     '".JRequest::getVar('ContactName','', 'post', 'string', '' )."' ,
     '".JRequest::getVar('ContactPosition','', 'post', 'string', '' )."' ,
     '".JRequest::getVar('WebSite','', 'post', 'string', '' )."' ,
     '".JRequest::getVar('EMail','', 'post', 'string', '' )."' ,
     '".JRequest::getVar('Phone','', 'post', 'string', '' )."' ,
     '".JRequest::getVar('Fax','', 'post', 'string', '' )."' ,
     '".JRequest::getVar('LogoURL','', 'post', 'string', '' )."' ,
     '".JRequest::getVar('Description','', 'post', 'string', '' )."'); );
if (!$database->query()) {
echo "<script> alert('".$database->getErrorMsg()."'); window.history.go(-1);
</script>
";
}
?>
Max_admin 17 Aug, 2008
well, which Chronoforms version is this ?
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
broberts 17 Aug, 2008
The filename is ChronoForms_V3.0_J1.5_BETA_1
Max_admin 17 Aug, 2008
No, please upgrade to BETA 2, backup your form, uninstall BETA 1 then install BETA 2 then rstore your form, then open your form and save it again, you will need to reconnect to table!
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
broberts 17 Aug, 2008
Well that solved the </textarea> save problem. When I try to view the form now I'm getting
Fatal error: Call to a member function setQuery() on a non-object in C:\...\Documents\XAMPP\htdocs\Joomla15\modules\mod_cblogin\mod_cblogin.php on line 147
Max_admin 17 Aug, 2008
well, seems nothing with Chronoforms this time, but just curious, are you connected to any tables ? if yes, what are they ?
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
broberts 17 Aug, 2008
All the forms are generating this message.

The form we've been discussing is attached to a table I created jos_crepso_members. BTW really like the new DB Connection tab. This table did not originally have recordtime, ipaddress, or uid fields. After the first failure and in looking at the AutoGenerate code I added the fields to the table. (My Joomla! & PHP knowledge is almost non-existent so I had no idea if this was necessary.)

I've also tried creating new forms. One uses the same form definition and table. The other is absolutely basic it simply has
<input type="text" name="Comment" width="100">
Max_admin 17 Aug, 2008
hi broberts,

Lets concentrate on your main form, disable the DB connection and don't connect to any tables then reopen the form page, do you still get the same error ?
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
broberts 18 Aug, 2008
DB Connection enabled or disabled makes no difference to the message.

Since the message indicated a problem in community builder (cb) code I uninstalled this legacy system and the problem disappears. CB was handling user authentication among other things.

edit: it appears that the cb stuff was causing problems with other chrono problems I was having. I had yet to ask about the fact that I couldn't get the form to actually save anything in the db. Once I uninstalled cb the problem vanished.
This topic is locked and no more replies can be posted.

VPS & Email Hosting 20% discount
hostinger