This script (below) includes a form. When the user clicks on the submit button on the form (found in the .tpl file) they end up on a specific page.
I would like to define a different page for them to go to after they click on submit. I'm hoping someone can tell me how to do that. I just can't figure out how to set the destination page.
Here is the file ez_edit.php
<?php
/** User page for editing a SMS number during easy setup
*/
include("system/setup.inc.php");
$user->confirmAccess("user","/index.php?access=0");
$pmaUser = $user->getAccess('user');
if($pmaUser->getCreatedSmsId()) {
$sms_id = $pmaUser->getCreatedSmsId();
}
else $sms_id = inputReq($_REQUEST,'sms_id');
$dataObj = new DataObject();
if(isset($_REQUEST['sms'])) {
$sms = $_REQUEST['sms'];
$sms['sms_id'] = $sms_id;
}
else if($sms_id != 0) {
$sms = $pmaUser->getSms($_REQUEST['sms_id']);
}
else {
$sms = array('time_start_ts' => 32400,
'time_end_ts' => 75600,
'minimum_ts_hours' => 0,
'maximum_ts_hours' => 2,
'minimum_ts_minutes' => 30,
'maximum_ts_minutes' => 0,
'day' => array('sun','mon','tue','wed','thu','fri','sat'));
}
$dataObj->data['sms'] = $sms;
$dataObj->data['carriers'] = $pmaUser->getCarriers();
$dataObj->data['times'] = $pmaUser->getTimes();
$dataObj->data['intervals'] = $pmaUser->getIntervals();
$dataObj->display = "ez_user_edit_sms";
//print_r($sms);
systemDisplay($dataObj,$user)
?>
[/I]
Thanks in advance for any help you can give!