phuzion Posted June 21, 2004 Posted June 21, 2004 I would like to set up an InfoPage in the Information Box (Presently have the Information Pages Unlimited contribution installed, but willing to do it another way if necessary.) that e-mails the contents of form fields to the store owner, much like the contact_us.php file. Is there a simple way to do custom forms in osC? The form I have in mind has many fields, drop downs, radio boxes, etc. What is the best way to go about this? Anybody else doing this, or something similar? If so, what's your method? Thanks in Advance!
Guest Posted June 21, 2004 Posted June 21, 2004 Hey im pretty sure this is what your talking about. Let me know if it is and I will help you out. http://catalog.streetflossin.com
phuzion Posted June 21, 2004 Author Posted June 21, 2004 Yes, definatley along those lines! Started playing with an external PHP forms processor known as PHPNoviceForms, but I would surely be interested in knowing how you're going about it.
Guest Posted June 28, 2004 Posted June 28, 2004 Sorry for the long wait for this. You need to create 2 new files. (change yourfilename.php and yourfilename2.php to whatever name you want /catalog/yourfilename.php /catalog/includes/languages/english/yourfilename2.php /catalog/youfilename.php This page is the template page so all your headers and columns will show up on the form page. (make sure you change line 14 and 16 to put the right file name in) <?php /* $Id: yourfilename.php,v 1.22 2004/06/26 23:26:23 hpdl Exp $ Street Flossin Automotive Design http://www.streetflossin.com Copyright (c) 2003 StreetFlossin Released under the GNU General Public License */ require('includes/application_top.php'); require(DIR_WS_LANGUAGES . $language . '/' . 'yourfilename.php'); $breadcrumb->add(NAVBAR_TITLE, tep_href_link('yourfilename.php')); ?> <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html <?php echo HTML_PARAMS; ?>> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <title><?php echo TITLE; ?></title> <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> <link rel="stylesheet" type="text/css" href="stylesheet.css"> </head> <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0"> <!-- header //--> <?php require(DIR_WS_INCLUDES . 'header.php'); ?> <!-- header_eof //--> <!-- body //--> <table border="0" width="100%" cellspacing="3" cellpadding="3"> <tr> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <!-- left_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?> <!-- left_navigation_eof //--> </table></td> <!-- body_text //--> <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="pageHeading"><?php echo HEADING_TITLE; ?></td> <td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_specials.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="main"><?php echo TEXT_INFORMATION; ?></td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> </table></td> <!-- body_text_eof //--> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <!-- right_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_right.php'); ?> <!-- right_navigation_eof //--> </table></td> </tr> </table> <!-- body_eof //--> <!-- footer //--> <?php require(DIR_WS_INCLUDES . 'footer.php'); ?> <!-- footer_eof //--> <br> </body> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> /catalog/include/languages/youfilename2.php This page is the form page. You add the form like you would as in a html based form. (make sure you change the defines in the very begging of the page. Also you need to leave in the </form> as the first text afterdefine('TEXT_INFORMATION', ') <?php /* $Id: yourfilename.php,v 1.22 2004/06/26 23:26:23 hpdl Exp $ Street Flossin Automotive Design http://www.streetflossin.com Copyright (c) 2003 StreetFlossin Released under the GNU General Public License */ define('NAVBAR_TITLE', 'Your Text'); define('HEADING_TITLE', 'Your Text'); define('TEXT_INFORMATION', '</form> <form action>this is the area for your form. </form>'); ?>
Recommended Posts
Archived
This topic is now archived and is closed to further replies.