Thread: cgi script
View Single Post
Old 12-12-2002, 06:29 AM   #6 (permalink)
Henry
Registered User
 
Join Date: Dec 2002
Location: Chicago
Posts: 13
Henry is on a distinguished road
cgi script

I ftp'd the entire emform folder onto the server. The folder includes several folders: admin, docs, images, library, sql, and template - plus six seperate files listed as: emform, emform_config, _class, _func, _msg, _notify. I was only able to open and edit the seperate emform_ files in GoLive, I was not able to open any of the files in the other folders. I entered information like dbname, username, password, admin url, etc into the emform_config and emform files. I just wrote what seemed appropriate into the "" (quotation marks). Here's some of the script:
$config_array = array(
"emform_path" => $emform_path,
"emform_admin_path" => $emform_admin_path,
"emform_upload_path" => $emform_upload_path,
"emform_url" => $emform_url,
"emform_admin_url" => $emform_admin_url,
"emform_image_url" => $emform_image_url,
"emform_library_path" => $emform_library_path,
"emform_script_url" => "$emform_url/emform.php",
"admin_url" => "$emform_admin_url/admin.php",
"eternalmart" => $eternalmart,
"os" => $os

I was not sure if I was supposed to repeat this information down at the bottom of the script on the emform file
$emform_obj = new emform_class($config_array,$emsql,$form,$emform);
$emform_obj->set_form_info($form_obj->get_form_info());
$emform_obj->set_table_info($form_obj->get_table_info());
$emform_obj->set_tpl($template_obj);
$emform_obj->set_field_info($form_obj->get_field_info());
$emform_obj->set_reply_email($form_obj->get_reply_email());
$emform_obj->set_notify_email($emform_notify);
$emform_obj->set_emform_validation($form_obj->validation_rule);
$emform_obj->run();
So, I am just trying to figure out where I went wrong, or if there needs to be more information added somewhere.

Thanks,

Henry
Henry is offline   Reply With Quote