I have a form on a non-Joomla website which has the following fields:
- Full Name
- Email Address
- Work In A Pub (Tick box)
- Supplier (Tick box)
- Over 18
I have the following code to send from the external form through to the Joomla database (Joomla is using RSForms to capture this exact data):
// read form
if(strcasecmp($_GET['method'],'subscribe') == 0){
$fullName = $_POST['fullName'];
$emailAddress = $_POST['emailAddress'];
$worksInPub = ($_POST['workInPub']==='true');
$isSupplier = ($_POST['isSupplier']==='true');
$isOver18 = ($_POST['isOver18']==='true');
// Do something here with the data. If it fails, modify $response['code'] accordingly
$response['code'] = 1;
$response['status'] = $api_response_code[ $response['code'] ]['HTTP Response'];
$response['data'] = $api_response_code[ $response['code'] ]['Message'];
}
What code do I need to write to submit the above variables through to the RSForms table in the database?
If I use a sql statement then it won't have the SubmissionId in it (as this is from a different database table