Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Adding a form


Guest

Recommended Posts

I've been working on a new form that I modeled from the Contact Us form. The page displays fine (looks great...I even have it linked correctly in an Info Box), but NOTHING happens when I click the "continue" button to submit. Can someone help me with the code? Here are both form pages (English directory page included).

 

<?php

/*

$Id: enrollment.php,v 1.42 2003/06/12 12:17:07 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

require('includes/application_top.php');

 

require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_ENROLLMENT);

 

$error = false;

if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'send')) {

 

$name = tep_db_prepare_input($HTTP_POST_VARS['business name']);

$owner = tep_db_prepare_input($HTTP_POST_VARS['owner']);

$businesstype = tep_db_prepare_input($HTTP_POST_VARS['business type']);

$streetaddress = tep_db_prepare_input($HTTP_POST_VARS['street address']);

$city = tep_db_prepare_input($HTTP_POST_VARS['city']);

$state = tep_db_prepare_input($HTTP_POST_VARS['state']);

$zip = tep_db_prepare_input($HTTP_POST_VARS['zip']);

$country = tep_db_prepare_input($HTTP_POST_VARS['country']);

$emailaddress = tep_db_prepare_input($HTTP_POST_VARS['email address']);

$telephone = tep_db_prepare_input($HTTP_POST_VARS['telephone']);

$fax = tep_db_prepare_input($HTTP_POST_VARS['fax']);

$socialsecurityNumber = tep_db_prepare_input($HTTP_POST_VARS['social security Number']);

$taxidnumber = tep_db_prepare_input($HTTP_POST_VARS['tax id number']);

$resalecertificate = tep_db_prepare_input($HTTP_POST_VARS['resale certificate']);

$certstate = tep_db_prepare_input($HTTP_POST_VARS['cert state']);

$website = tep_db_prepare_input($HTTP_POST_VARS['website']);

$kitchen = tep_db_prepare_input($HTTP_POST_VARS['kitchen']);

$toys = tep_db_prepare_input($HTTP_POST_VARS['toys']);

$stainedglass = tep_db_prepare_input($HTTP_POST_VARS['stained glass']);

$electronics = tep_db_prepare_input($HTTP_POST_VARS['electronics']);

$all = tep_db_prepare_input($HTTP_POST_VARS['all']);

$free = tep_db_prepare_input($HTTP_POST_VARS['free']);

$products = tep_db_prepare_input($HTTP_POST_VARS['products']);

$kitchenweb = tep_db_prepare_input($HTTP_POST_VARS['kitchenweb']);

$toysweb = tep_db_prepare_input($HTTP_POST_VARS['toysweb']);

$stainedglassweb = tep_db_prepare_input($HTTP_POST_VARS['stainedglassweb']);

$electronicsweb = tep_db_prepare_input($HTTP_POST_VARS['electronicsweb']);

$allweb = tep_db_prepare_input($HTTP_POST_VARS['allweb']);

$intitials = tep_db_prepare_input($HTTP_POST_VARS['intitials']);

$fullname = tep_db_prepare_input($HTTP_POST_VARS['fullname']);

$date = tep_db_prepare_input($HTTP_POST_VARS['date']);

 

 

 

 

if (tep_validate_email($email_address)) {

tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, EMAIL_SUBJECT, $name, $owner, $businesstype, $streetaddress, $city, $state, $zip, $country, $emailaddress, $telephone, $fax, $socialsecurityNumber, $taxidnumber, $resalecertificate, $certstate, $website, $kitchen, $toys, $stainedglass, $electronics, $all, $free, $products, $kitchenweb, $toysweb, $stainedglassweb, $electronicsweb, $allweb, $intitials, $fullname, $date );

 

tep_redirect(tep_href_link(FILENAME_ENROLLMENT, 'action=success'));

} else {

$error = true;

 

// $messageStack->add('enrollment', ENTRY_EMAIL_ADDRESS_CHECK_ERROR);

}

}

 

$breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_ENROLLMENT));

 

?>

<!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"><?php echo tep_draw_form('enrollment', tep_href_link(FILENAME_ENROLLMENT, 'action=send')); ?>

<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_enrollment.jpg', 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>

<?php

if ($messageStack->size('contact') > 0) {

?>

<tr>

<td><?php echo $messageStack->output('contact'); ?></td>

</tr>

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

</tr>

<?php

}

 

if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'success')) {

?>

<tr>

<td class="main" align="center"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_man_on_board.gif', HEADING_TITLE, '0', '0', 'align="left"') . TEXT_SUCCESS; ?></td>

</tr>

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

</tr>

<tr>

<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">

<tr class="infoBoxContents">

<td height="26"> <table border="0" width="100%" cellspacing="0" cellpadding="2">

<tr>

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

<td align="right"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></td>

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

</tr>

</table></td>

</tr>

</table></td>

</tr>

<?php

} else {

?>

<tr>

<td height="931"> <table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">

<tr class="infoBoxContents">

<td height="923"> <table border="0" width="100%" cellspacing="0" cellpadding="2">

<tr>

<td class="main"><table width="90%" border="0" align="center">

<tr>

<td><div align="center"><?php echo ENTRY_PLANET; ?></div></td>

</tr>

</table></td>

</tr>

<tr>

<td class="main"><table width="99%" border="0" align="center">

<tr>

<td><div align="left"><?php echo ENTRY_TXT_PLANET; ?></div></td>

</tr>

</table></td>

</tr>

<tr>

<td class="main"><table width="99%" border="0">

<tr>

<td><div align="center"><img src="images/o-line.jpg" width="548" height="4"></div></td>

</tr>

</table></td>

</tr>

<tr>

<td class="main"><table width="100%" border="0">

<tr>

<td width="30%" height="20"><?php echo ENTRY_NAME; ?></td>

<td width="28%"><?php echo tep_draw_input_field('name'); ?></td>

<td width="17%"><?php echo ENTRY_OWNER; ?></td>

<td width="25%"><?php echo tep_draw_input_field('owner'); ?></td>

</tr>

</table></td>

</tr>

<tr>

<td class="main"><table width="100%" border="0">

<tr>

<td height="20" colspan="2"><?php echo ENTRY_TYPE_BUSINESS; ?>

<td width="80%"><?php echo ('<form name="enrollment" method="post" action="send">

<label>

<input type="radio" name="RadioGroup1" value="SOLE_PROPRIRTOR">

<b><font size="1" face="Georgia, Times New Roman, Arial">Sole

Proprietor</b></label>

<label>

<input type="radio" name="RadioGroup1" value="PARTNERSHIP">

<b>Partnership</b></label>

<label>

<input type="radio" name="RadioGroup1" value="CORPRATION">

<b>Corporation</b></label>

<label>

<input name="RadioGroup1" type="radio" value="LLC">

<b>LLC</font></b></label>

<p></p>

</form>'); ?> </table></td>

</tr>

<tr>

<td class="main"><table width="100%" border="0">

<tr>

<td width="36%"><?php echo ENTRY_STREET_ADDRESS; ?>

<td width="26%"><?php echo tep_draw_input_field('streetaddress'); ?>

<td width="14%"><?php echo ENTRY_CITY; ?>

<td width="24%"><?php echo tep_draw_input_field('city'); ?></table></td>

</tr>

<tr>

<td class="main"><table width="100%" border="0">

<tr>

<td width="36%"><?php echo ENTRY_STATE; ?></td>

<td width="26%"><?php echo ('<select name="select" size="1">

<option Value="">Please Select

<option Value="AL">Alabama

<option Value="AK">Alaska

<option Value="AZ">Arizona

<option Value="AR">Arkansas

<option Value="CA">California

<option Value="CO">Colorado

<option Value="CT">Connecticut

<option Value="DC">Washington, D.C.

<option Value="DE">Delaware

<option Value="FL">Florida

<option Value="GA">Georgia

<option Value="HI">Hawaii

<option Value="ID">Idaho

<option Value="IL">Illinois

<option Value="IN">Indiana

<option Value="IA">Iowa

<option Value="KS">Kansas

<option Value="KY">Kentucky

<option Value="LA">Louisiana

<option Value="ME">Maine

<option Value="MD">Maryland

<option Value="MA">Massachusetts

<option Value="MI">Michigan

<option Value="MN">Minnesota

<option Value="MS">Mississippi

<option Value="MO">Missouri

<option Value="MT">Montana

<option Value="NE">Nebraska

<option Value="NV">Nevada

<option Value="NH">New Hampshire

<option Value="NJ">New Jersey

<option Value="NM">New Mexico

<option Value="NY">New York

<option Value="NC">North Carolina

<option Value="ND">North Dakota

<option Value="OH">Ohio

<option Value="OK">Oklahoma

<option Value="OR">Oregon

<option Value="PA">Pennsylvania

<option Value="RI">Rhode Island

<option Value="SC">South Carolina

<option Value="SD">South Dakota

<option Value="TN">Tennessee

<option Value="TX">Texas

<option Value="UT">Utah

<option Value="VT">Vermont

<option Value="VA">Virginia

<option Value="WA">Washington

<option Value="WV">West Virginia

<option Value="WI">Wisconsin

<option Value="WY">Wyoming</option>

</select>'); ?></td>

<td width="14%"><?php echo ENTRY_ZIP; ?></td>

<td width="24%"><?php echo tep_draw_input_field('zip'); ?>

</td>

</tr>

</table></td>

</tr>

<tr>

<td class="main"><table width="100%" border="0" align="left">

<tr>

<td width="36%"><?php echo ENTRY_COUNTRY; ?></td>

<td width="26%"><?php echo tep_draw_input_field('country'); ?></td>

<td width="14%"><?php echo ENTRY_MAIL; ?></td>

<td width="24%"><?php echo tep_draw_input_field('emailaddress'); ?></td>

</tr>

</table></td>

</tr>

<tr>

<td class="main"><table width="100%" border="0" align="left">

<tr>

<td width="36%"><?php echo ENTRY_TELEPHONE; ?></td>

<td width="26%"><?php echo tep_draw_input_field('telephone'); ?></td>

<td width="14%"><?php echo ENTRY_FAX; ?></td>

<td width="24%"><?php echo tep_draw_input_field('fax'); ?></td>

</tr>

</table></td>

</tr>

<tr>

<td class="main"><table width="100%" border="0" align="left">

<tr>

<td width="36%"><?php echo ENTRY_SSN; ?></td>

<td width="26%"><?php echo tep_draw_input_field('socialsecurityNumber'); ?></td>

<td width="14%"><?php echo ENTRY_TAX; ?></td>

<td width="24%"><?php echo tep_draw_input_field('taxidnumber'); ?></td>

</tr>

</table></td>

</tr>

<tr>

<td class="main"><table width="100%" border="0" align="left">

<tr>

<td width="36%"><?php echo ENTRY_CERTIFICATE; ?></td>

<td width="26%"><?php echo tep_draw_input_field('resaleCertificate'); ?></td>

<td width="14%"><?php echo ENTRY_CERT_STATE; ?></td>

<td width="24%"><?php echo ('<select name="select" size="1">

<option Value="">Please Select

<option Value="AL">Alabama

<option Value="AK">Alaska

<option Value="AZ">Arizona

<option Value="AR">Arkansas

<option Value="CA">California

<option Value="CO">Colorado

<option Value="CT">Connecticut

<option Value="DC">Washington, D.C.

<option Value="DE">Delaware

<option Value="FL">Florida

<option Value="GA">Georgia

<option Value="HI">Hawaii

<option Value="ID">Idaho

<option Value="IL">Illinois

<option Value="IN">Indiana

<option Value="IA">Iowa

<option Value="KS">Kansas

<option Value="KY">Kentucky

<option Value="LA">Louisiana

<option Value="ME">Maine

<option Value="MD">Maryland

<option Value="MA">Massachusetts

<option Value="MI">Michigan

<option Value="MN">Minnesota

<option Value="MS">Mississippi

<option Value="MO">Missouri

<option Value="MT">Montana

<option Value="NE">Nebraska

<option Value="NV">Nevada

<option Value="NH">New Hampshire

<option Value="NJ">New Jersey

<option Value="NM">New Mexico

<option Value="NY">New York

<option Value="NC">North Carolina

<option Value="ND">North Dakota

<option Value="OH">Ohio

<option Value="OK">Oklahoma

<option Value="OR">Oregon

<option Value="PA">Pennsylvania

<option Value="RI">Rhode Island

<option Value="SC">South Carolina

<option Value="SD">South Dakota

<option Value="TN">Tennessee

<option Value="TX">Texas

<option Value="UT">Utah

<option Value="VT">Vermont

<option Value="VA">Virginia

<option Value="WA">Washington

<option Value="WV">West Virginia

<option Value="WI">Wisconsin

<option Value="WY">Wyoming</option>

</select>'); ?></td>

</tr>

</table></td>

</tr>

<tr>

<td><table width="100%" border="0">

<tr>

<td background="images/E8Fill.gif"> <div align="center"></div></td>

</tr>

</table></td>

</tr>

<tr>

<td><table width="99%" border="0">

<tr>

<td><div align="center"><img src="images/o-line.jpg" width="548" height="4"></div></td>

</tr>

</table></td>

</tr>

<tr>

<td><table width="100%" border="0">

<tr>

<td background="images/E8Fill.gif"> <div align="center"></div></td>

</tr>

</table></td>

</tr>

<tr>

<td><table width="100%" border="0">

<tr>

<td><div align="center"><?php echo ENTRY_SIGN_FOR_TXT; ?></div></td>

</tr>

</table></td>

</tr>

<tr>

<td><table width="100%" border="0">

<tr>

<td><div align="center"><?php echo ENTRY_SEEKING_TXT; ?></div></td>

</tr>

</table></td>

</tr>

<tr>

<td class="main"><table width="100%" border="0" align="left">

<tr>

<td width="19%"><?php echo ENTRY_WEBSITE; ?></td>

<td width="26%"><?php echo('<select name="select" size="1">

<option Value="">Please Select

<option Value="Yes">Yes

<option Value="No">No

</option>

</select>'); ?></td>

<td width="14%"><?php echo ENTRY_KITCHEN; ?></td>

<td width="18%"><?php echo ('<form name="form2" method="post" action="SEND">

<input type="checkbox" name="checkbox2" value="checkbox2">

</form>'); ?> </td>

<td width="10%"><?php echo ENTRY_TOYS; ?></td>

<td width="13%"><?php echo ('<form name="form4" method="post" action="SEND">

<input type="checkbox" name="checkbox4" value="checkbox4">

</form>'); ?> </td>

</tr>

</table></td>

</tr>

<tr>

<td class="main"><table width="100%" border="0" align="left">

<tr>

<td width="22%"><?php echo ENTRY_STAINED_GLASS; ?></td>

<td width="23%"><?php echo ('<form name="form3" method="post" action="SEND">

<input type="checkbox" name="checkbox3" value="checkbox3">

</form>'); ?></td>

<td width="14%"><?php echo ENTRY_ELECTRONICS; ?></td>

<td width="18%"><?php echo ('<form name="form1" method="post" action="SEND">

<input type="checkbox" name="checkbox1" value="checkbox1">

</form>'); ?> </td>

<td width="10%"><?php echo ENTRY_ALL; ?></td>

<td width="13%"><?php echo ('<form name="form5" method="post" action="SEND">

<input type="checkbox" name="checkbox5" value="checkbox5">

</form>'); ?> </td>

</tr>

</table></td>

</tr>

<tr>

<td class="main"><table width="100%" border="0" align="left">

<tr>

<td width="56%" rowspan="2"><?php echo ENTRY_FREE; ?></td>

<td width="44%"><?php echo ENTRY_AVAILABILITY; ?></td>

</tr>

<tr>

<td height="20"><?php echo tep_draw_input_field('free,w/Purchase of a Website, Enter The Free Domain to Register.... : http://www..'); ?></td>

</tr>

</table></td>

</tr>

<tr>

<td class="main"><table width="100%" border="0" align="left">

<tr>

<td width="38%"><?php echo ENTRY_PRODUCTS; ?></td>

<td width="22%"><?php echo ('<select name="select" size="1">

<option Value="">Please Select

<option Value="Yes">Yes

<option Value="No">No

</option>

</select>'); ?></td>

<td width="12%"><?php echo ENTRY_A_KITCHEN; ?></td>

<td width="7%"><?php echo ('<form name="form7" method="post" action="SEND">

<input type="checkbox" name="checkbox7" value="checkbox7">

</form>'); ?> </td>

<td width="10%"><?php echo ENTRY_A_TOYS; ?></td>

<td width="11%"><?php echo ('<form name="form9" method="post" action="SEND">

<input type="checkbox" name="checkbox9" value="checkbox9">

</form>'); ?> </td>

</tr>

</table></td>

</tr>

<tr>

<td class="main"><table width="100%" border="0" align="left">

<tr>

<td width="27%"><?php echo ENTRY_A_STAINED_GLASS; ?></td>

<td width="16%"><?php echo ('<form name="form8" method="post" action="SEND">

<input type="checkbox" name="checkbox8" value="checkbox8">

</form>'); ?></td>

<td width="18%"><?php echo ENTRY_A_ELECTRONICS; ?></td>

<td width="18%"><?php echo ('<form name="form6" method="post" action="SEND">

<input type="checkbox" name="checkbox6" value="checkbox6">

</form>'); ?> </td>

<td width="10%"><?php echo ENTRY_A_ALL; ?></td>

<td width="11%"><?php echo ('<form name="form10" method="post" action="SEND">

<input type="checkbox" name="checkbox10" value="checkbox10">

</form>'); ?></td>

</tr>

</table></td>

</tr>

<tr>

<td><table width="100%" border="0">

<tr>

<td height="20" background="images/E8Fill.gif"> <div align="center"></div></td>

</tr>

</table></td>

</tr>

<tr>

<td><table width="99%" border="0">

<tr>

<td><div align="center"><img src="images/o-line.jpg" width="548" height="4"></div></td>

</tr>

</table></td>

</tr>

<tr>

<td><table width="100%" border="0">

<tr>

<td height="20" background="images/E8Fill.gif"> <div align="center"></div></td>

</tr>

</table></td>

</tr>

<tr>

<td height="28"> <table width="100%" border="0">

<tr>

<td width="24%" height="20"> <div align="center"><?php echo ENTRY_MERCHANT; ?></div></td>

</tr>

</table></td>

</tr>

<tr>

<td height="28"> <table width="100%" border="0">

<tr>

<td height="20"> <div align="left"><?php echo ENTRY_POLICES_TXT; ?></div></td>

</tr>

</table></td>

</tr>

<tr>

<td class="main"><table width="100%" border="0" align="left">

<tr>

<td width="46%"><?php echo ENTRY_ACCEPTANCE_TERMS_INTITIALS; ?></td>

<td width="54%"><?php echo tep_draw_input_field('intitials'); ?></td>

</tr>

</table></td>

</tr>

<tr>

<td height="28"> <table width="100%" height="24" border="0">

<tr>

<td width="37%" height="20"><?php echo ENTRY_STATEMENT_PARAGRAPH; ?></td>

</tr>

</table></td>

</tr>

<tr>

<td><table width="100%" border="0" dwcopytype="CopyTableRow">

<tr>

<td width="22%"><?php echo ENTRY_PLEASE_SIGN; ?></td>

</tr>

</table></td>

</tr>

<tr>

<td class="main"><table width="100%" border="0" align="left">

<tr>

<td width="24%" height="20"><?php echo ENTRY_FULL_NAME; ?></td>

<td width="33%"><?php echo tep_draw_input_field('fullname'); ?></td>

<td width="14%"><?php echo ENTRY_DATE; ?></td>

<td width="29%"><?php echo tep_draw_input_field('date'); ?></td>

</tr>

</table></td>

</tr>

<tr>

<td><table width="100%" border="0">

<tr>

<td width="18%"><?php echo ENTRY_RESELLER_CERT_STATEMENT; ?></td>

</tr>

</table></td>

</tr>

<tr>

<td><table width="99%" border="0">

<tr>

<td width="22%" height="20"><?php echo ENTRY_NUMBER_FAX; ?></td>

</tr>

</table></td>

</tr>

<tr>

<td height="27"> </td>

</tr>

</table></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="1" cellpadding="2" class="infoBox">

<tr class="infoBoxContents">

<td><table border="0" width="100%" cellspacing="0" cellpadding="2">

<tr>

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

<td align="right"><?php echo tep_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?></td>

<td width="10"> </td>

</tr>

</table></td>

</tr>

</table></td>

</tr>

<?php

}

?>

</table></form>

<?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?> </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'); ?>

 

----------------------------------------------------------

 

Here is the English page:

 

<?php

/*

$Id: enrollment.php,v 1.4 2002/11/19 01:48:08 dgw_ Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2002 osCommerce

 

Released under the GNU General Public License

*/

 

define('NAVBAR_TITLE', 'Enrollment Form');

define('HEADING_TITLE', 'Enrollment Form');

 

define('TEXT_SUCCESS', 'Your Enrollment This is an automated reply. Please do NOT respond or reply to this email...!

<p>

Thank you for submitting your Enrollment Form! Now that we have received your Enrollment Form, we can begin to setup your account(s).

<p>

If you live in a state that has sales tax, please remember to fax your Reseller?s Certificate to us. We require your Reseller?s Certificate in order to complete the setup of your account(s). If you do not have a Reseller?s Certificate, you will need to apply for one at your state?s Department of Revenue. Applying for a Reseller?s Certificate is easy and free (for most states).

<p>

Please fax your Reseller?s Certificate to: <br>

314-584-5950<p>

 

Please allow about 72 hours for processing. We will contact you by email. Please add our email address to your address book so SPAM STOPPER will allow:<br> [email protected].');

define('EMAIL_SUBJECT', 'Enquiry from' . STORE_NAME);

 

define('ENTRY_PLANET', '<font color="#000000" size="3" face="Georgia, Times New Roman, Arial"><u><strong><em>PlanetDropShipper.Com</em></strong></u></font>');

define('ENTRY_ENROLLMENT', 'Enrollment Form:');

define('ENTRY_TXT_PLANET', '<font color="#000000" size="1" face="Georgia, Times New Roman, Arial">This

Enrollment Form must be completed after purchasing

either a website or a membership to our product

database. The information requested is necessary

for our files. We respect your privacy and will

NOT share, rent or sell your information with

any other organization or party. </font>');

define('ENTRY_NAME', 'Business Name:');

define('ENTRY_OWNER', 'Owner:');

define('ENTRY_TYPE_BUSINESS', 'Business Type:');

define('ENTRY_STREET_ADDRESS', 'Street Address:');

define('ENTRY_CITY', 'City:');

define('ENTRY_STATE', 'State:');

define('ENTRY_ZIP', 'Zip:');

define('ENTRY_COUNTRY', 'Country:');

define('ENTRY_TELEPHONE', 'Telephone:');

define('ENTRY_FAX', 'fax:');

define('ENTRY_MAIL', 'Email:');

define('ENTRY_TAX', 'Tax-ID Number:');

define('ENTRY_SSN', 'Social Security Number:');

define('ENTRY_CERTIFICATE', 'Resellers Certificate:');

define('ENTRY_CERT_STATE', 'State:');

define('ENTRY_SIGN_FOR_TXT', '<font color="#000000" size="1" face="Georgia, Times New Roman, Arial"><strong><u>Servies

You?re Signing Up For:</u></strong></font>');

define('ENTRY_SEEKING_TXT', '<font color="#000000" size="1" face="Georgia, Times New Roman, Arial">What

are you seeking enrollment for (check all applicable

boxes)<strong>: </strong></font>');

define('ENTRY_WEBSITE', '<b><u>Website</u></b>:');

define('ENTRY_ELECTRONICS', 'Electronics:');

define('ENTRY_CHECKBOX1', 'checkbox1:');

define('ENTRY_KITCHEN', 'Kitchen:');

define('ENTRY_CHECKBOX2', 'checkbox2:');

define('ENTRY_STAINED_GLASS', 'Stained Glass:');

define('ENTRY_CHECKBOX3', 'checkbox3:');

define('ENTRY_TOYS', 'Toys:');

define('ENTRY_CHECKBOX4', 'checkbox4:');

define('ENTRY_ALL', 'All:');

define('ENTRY_CHECKBOX5', 'checkbox5:');

define('ENTRY_SOLE_PROPRIRTOR', 'Sole Proprietor:');

define('ENTRY_PARTNERSHIP', 'Partnership:');

define('ENTRY_CORPRATION', 'Corporation:');

define('ENTRY_LLC', 'LLC:');

define('ENTRY_FREE', 'w/Purchase of a Website, Enter the Free Domain to Register......... : http://www.');

define('ENTRY_AVAILABILITY', '<u><font size="1" face="Georgia, Times New Roman, Arial">Domain

names subject to availability</font></u>:');

define('ENTRY_PRODUCTS', '<b><u>Products Membership</u></b>:');

define('ENTRY_A_ELECTRONICS', 'Electronics:');

define('ENTRY_CHECKBOX6', 'checkbox6:');

define('ENTRY_A_KITCHEN', 'Kitchen:');

define('ENTRY_CHECKBOX7', 'checkbox7:');

define('ENTRY_A_STAINED_GLASS', 'Stained Glass:');

define('ENTRY_CHECKBOX8', 'checkbox8:');

define('ENTRY_A_TOYS', 'Toys:');

define('ENTRY_CHECKBOX9', 'checkbox9:');

define('ENTRY_A_ALL', 'All:');

define('ENTRY_CHECKBOX10', 'checkbox10:');

define('ENTRY_MERCHANT', '<font color="#000000" size="1" face="Georgia, Times New Roman, Arial"><b><u> Merchant Policies:</u></b></font>');

define('ENTRY_POLICES_TXT', '<font color="#000000" size="1" face="Georgia, Times New Roman, Arial"><ul><li>All

orders should be submitted through our website and

paid using Pay Pal. Our Pay Pal ID is [email protected].

All orders must be paid before the order will be

shipped. Through Pay Pal, you can pay by Visa, MasterCard,

Discover, or with E-check (funds directly from your checking

account). <br><li>Product Availability, Prices,

and Terms are subject to change without notice.

<br><li>There is no minimum order amount

at this time.

<br><li>All polices are outlined on our "Policies" webpage shall apply. (please read them).

<br><li>ALL legal disputes arising from

business with PlanetDropshipper.com shall have

jurisdiction in Tallahassee, FL.

<br><li>PlanetDropshipper.com is not responsible

for collecting or paying any sales tax on products

the customer may sell. The customer is therefore

responsible for collecting and paying any applicable

state sales tax on products the customer sells.

<br><li>ALL Customs, Duties, and Taxes

for International Orders will be the sole responsibility

of the customer.

<br><li>None of PlanetDropshipper.com?s

services can be used in any way for illegal activities,

hate activities, or pornography.

</font></ul>');

define('ENTRY_ACCEPTANCE_TERMS_INTITIALS', '(Acceptance of Terms: ? Please Type Initials Here):');

define('ENTRY_STATEMENT_PARAGRAPH', '<font color="#000000" size="1" face="Georgia, Times New Roman, Arial">I have read and understand the terms of sale for this

account with PlanetDropShipper.com (attached), and

I agree to conduct business with PlanetDropshipper.com

within the guidelines set forth therein. In addition,

I attest that the information I have given (above)

is factual in regards to the company applying for

an account, and that I am authorized to act on behalf

of this company.</font>');

define('ENTRY_PLEASE_SIGN', '<font color="#000000" size="1" face="Georgia, Times New Roman, Arial">Please

sign this application by typing your full name below...</font>');

define('ENTRY_FULL_NAME', 'Full Name:');

define('ENTRY_DATE', 'Date:');

define('ENTRY_RESELLER_CERT_STATEMENT', '<font color="#000000" size="1" face="Georgia, Times New Roman, Arial">If

you live in a state that has sales tax, please remember

to fax your Reseller?s Certificate to us.

We require your Reseller?s Certificate in

order to complete the setup of your account(s).

If you do not have a Reseller?s Certificate,

you will need to apply for one at your state?s

Department of Revenue. Applying for a Reseller?s

Certificate is easy and free (for most states).</font>');

 

define('ENTRY_NUMBER_FAX', '<font color="#000000" size="1" face="Georgia, Times New Roman, Arial"><strong><u>Please click continue below</u>, then fax your Reseller?s Certificate. Or print and fax <u>both</u> your Reseller?s Certificate and this form to: </strong>

<br>

Fax: 314-584-5950</font>');

 

 

 

 

 

 

?>

Link to comment
Share on other sites

You are using database functions and defines for a whole list of items that do not exist in the database. Have you added them?

 

You may want to take a look at the 'Contact Script' contribution under my name. It can be used as an alternative Contact Us page, or else as a free-standing and seperate contact script.

 

Vger

Link to comment
Share on other sites

Hi,

Is it referenced to this line...? <td><?php echo $messageStack->output('contact'); ?></td>

 

This was a question I thought about, but not sure where to edit the 'Contact Script'

 

You are using database functions and defines for a whole list of items that do not exist in the database.  Have you added them?

 

You may want to take a look at the 'Contact Script' contribution under my name.  It can be used as an alternative Contact Us page, or else as a free-standing and seperate contact script.

 

Vger

Link to comment
Share on other sites

So, yes I believe I am using db type .

 

Hi,

Is it referenced to this line...? <td><?php echo $messageStack->output('contact'); ?></td>

 

This was a question I thought about, but not sure where to edit the 'Contact Script'

Link to comment
Share on other sites

probably nothing happens because of this

 

<form name="form3" method="post" action="SEND">

 

just putting SEND in the action of a form doesnt do anything

 

action would be something like

 

action="processform.php"> and I've just used that as an example you would need to direct your form to whichever file is doing the processing, such as the same one the form is created in.

 

just because you've defined an if statement trying to capture a GET variable called action is not the same as the action field of a form.

 

A get variable is passed as part of the URL

 

processform.php?action='send'

 

it could have easily been called bob and would work

 

processform.php?bob='send'

 

as long as your if statement checked for bob

 

 if (isset($HTTP_GET_VARS['bob']) && ($HTTP_GET_VARS['bob'] == 'send')) {

 

action of a form IS NOT the same as the action you are testing for at the beginning.

 

I suggest yoo do some reading to understand a little about HTML and what you are doing

 

http://www.w3schools.com/

 

some good tutorials on there

Link to comment
Share on other sites

also, why do you have all those forms on one page. You should only need one form tag, really not sure what you are trying to achieve there.

Link to comment
Share on other sites

I'm Not sure what you mean.... How is it that the contact us form works fine and thia was modeled after it exact, with excption to the main content area...?

 

 

probably nothing happens because of this

 

<form name="form3" method="post" action="SEND">

 

just putting SEND in the action of a form doesnt do anything

 

action would be something like

 

action="processform.php"> and I've just used that as an example you would need to direct your form to whichever file is doing the processing, such as the same one the form is created in.

 

just because you've defined an if statement trying to capture a GET variable called action is not the same as the action field of a form.

 

A get variable is passed as part of the URL

 

processform.php?action='send'

 

it could have easily been called bob and would work

 

processform.php?bob='send'

 

as long as your if statement checked for bob

 

 if (isset($HTTP_GET_VARS['bob']) && ($HTTP_GET_VARS['bob'] == 'send')) {

 

action of a form IS NOT the same as the action you are testing for at the beginning.

 

I suggest yoo do some reading to understand a little about HTML and what you are doing

 

http://www.w3schools.com/

 

some good tutorials on there

Link to comment
Share on other sites

I'm Not sure what you mean.... How is it that the contact us form works fine and thia was modeled after it exact, with excption to the main content area...?

 

The Contact Us script has been written properly thats why. Yours has not, in fact your looks nothing like the Contact Us script

 

this line in contact_us.php does the work of writing the HTML for posting/submitting the form

 

    <td width="100%" valign="top"><?php echo tep_draw_form('contact_us', tep_href_link(FILENAME_CONTACT_US, 'action=send')); ?><table border="0" width="100%" cellspacing="0" cellpadding="0">

 

which by the the time it is turned into HTML looks like this

 

<form name="contact_us" action="http://www.yourdomain.com/contact_us.php?action=send" method="post">

 

I have told you what is wrong with your script, you can either believe me or not but keeping on asking isnt going to change what is wrong and I'm afraid I'm not about to write it for you.

 

Sorry.

Link to comment
Share on other sites

Thanks for your help. SORRY, if I offened, I was merely asking with a ture need to know. So, by asking more questions I can understand better. (AS my Granfarther use to say there is NO such thing as a dumb question). I'm NOT a coder. I'm a bussinessmen just trying to get this form to work. I hope this clears up any hurt feeling you may have.... I real DO appreciate your help......! I shall look carefully at you feed back.

RJ

 

The Contact Us script has been written properly thats why.  Yours has not, in fact your looks nothing like the Contact Us script

 

this line in contact_us.php does the work of writing the HTML for posting/submitting the form

 

 ? ?<td width="100%" valign="top"><?php echo tep_draw_form('contact_us', tep_href_link(FILENAME_CONTACT_US, 'action=send')); ?><table border="0" width="100%" cellspacing="0" cellpadding="0">

 

which by the the time it is turned into HTML looks like this

 

<form name="contact_us" action="http://www.yourdomain.com/contact_us.php?action=send" method="post">

 

I have told you what is wrong with your script, you can either believe me or not but keeping on asking isnt going to change what is wrong and I'm afraid I'm not about to write it for you.

 

Sorry.

Link to comment
Share on other sites

Thanks for your help. SORRY, if I offened, I was merely asking with a ture need to know. So, by asking more questions I can understand better. (AS my Granfarther use to say there is NO such thing as a dumb question).  I'm NOT a coder. I'm a bussinessmen just trying to get this form to work. I hope this clears up any hurt feeling you may have....  I real DO appreciate your help......! I shall look carefully at you feed back.

RJ

 

Not offended at all.

 

Your code looks nothing like the contact_us.php page. I have posted a link to site with tutorials on HTML.

 

As my Grandfather used to say "Sod this internet stuff I'm off down the pub"

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...