I want to use a modification of your SubmitContent form to create jos_content records in a specific format.
eg the form might be
Name:
Favourite food:
Favourite drink:
and the jos_content record might be
title = My name is <name field>
introtext = My favourite food is <food field> and I like to drink <drink field>
I understand that I need to put in the form code before or after email something like
$_POST['title'] = 'My name is '.<name field>;
$_POST['introtext'] = 'My favourite food is '.<food field>.' and I like to drink '.<drink field>;
So how do I access the value of these form fields?
eg the form might be
Name:
Favourite food:
Favourite drink:
and the jos_content record might be
title = My name is <name field>
introtext = My favourite food is <food field> and I like to drink <drink field>
I understand that I need to put in the form code before or after email something like
$_POST['title'] = 'My name is '.<name field>;
$_POST['introtext'] = 'My favourite food is '.<food field>.' and I like to drink '.<drink field>;
So how do I access the value of these form fields?
Hi,
here is an example :
Cheers
Max
here is an example :
$_POST['title'] = 'My name is '.JRequest::getVar('name field');
$_POST['introtext'] = 'My favourite food is '.JRequest::getVar('food field').' and I like to drink '.<drink field>;
Cheers
Max
This topic is locked and no more replies can be posted.
