Hi,
I've created my form with following fields:
$text_4
$text_2
$date_3
$select_9
$select_5
I'm able to save data to a jos_content table and section and category id are predefined.
When I try the form, the data are stored in my section, i can read the title but when I open the article there isn't the content.
At Onsubmit code i put this:
Can anyone help me?
Thanks a lot
I've created my form with following fields:
$text_4
$text_2
$date_3
$select_9
$select_5
I'm able to save data to a jos_content table and section and category id are predefined.
When I try the form, the data are stored in my section, i can read the title but when I open the article there isn't the content.
At Onsubmit code i put this:
<?php $text_4 = JRequest::getString('text_4', '', 'post'); $text_2 = JRequest::getString('text_2', '', 'post'); $date_3 = JRequest::getString('date_3', '', 'post'); $select_9 = JRequest::getString('select_9', '', 'post'); $select_5 = JRequest::getString('select_5', '', 'post'); $title = $text_4.$text_2.$date_3; JRequest::setVar('title', $title); JRequest::setVar('sectionid', 2); JRequest::setVar('catid', 4); JRequest::setVar('state', 1); ?>
Can anyone help me?
Thanks a lot