New Zenner
- Join Date:
- Feb 2008
- Posts:
- 14
- Plugin Contributions:
- 0
Why can't I insert my PHP Mail Form into Define Pages Page_2????
Code included........
When I attempt to go to the page this code is inserted on, it halfway loads, and leaves the right column boxes as well as the body blank, and the header bar offset to the right.
<style type='text/css'>
.form_title{
color : #000000;
font-size: 13px;
font-family: verdana, Geneva, Arial, Helvetica, sans-serif;
font-weight : bold;
}
.form_field {
font-size : 13px;
font-family : Verdana, Arial, Helvetica, sans-serif;
color : #474747;
font-weight : bold;
text-align:left;
}
.form_text{
font-size : 11px;
font-family : Verdana, Arial, Helvetica, sans-serif;
color : #000000;
}
.text_box{
font-size : 11px;
font-family : Verdana, Arial, Helvetica, sans-serif;
color : #000000;
width:200px;
}
.text_area{
font-size : 11px;
font-family : Verdana, Arial, Helvetica, sans-serif;
color : #000000;
width:200px;
height:60px;
}
.text_select{
font-size : 11px;
font-family : Verdana, Arial, Helvetica, sans-serif;
color : #000000;
}
.form_error{
font-size : 11px;
font-family : Verdana, Arial, Helvetica, sans-serif;
color : #ff0000;
font-weight : bold;
}
.copyright{
font-size : 11px;
font-family : Verdana, Arial, Helvetica, sans-serif;
color : #000000;
}
</style>
<?php include_once( "20080222-c37c.lib.php" ); ?>
<br><br>
<table cellspacing='16' cellpadding='0' border='0' align='center' ><tr><td> If you are a practicing Esthetician or Cosmetologist, a Biofeedback Practitioner, or the owner of a Salon, Spa or Wellness Boutique... please take the time to send us some information about yourself.<br><br> As detailed in our Privacy Policy, we do not share your information with anyone, and will only use this information to validate your eligibility for special offers through our store, on our products.<br><br><strong>Please include the email address with which you registered on this site, for proper qualification of benefit.</strong> </td></tr></table> <!-- ------------------------ End: Your FormMail's Description ------------------------ --> <!-- ======================= Begin: Form Generated By PHP FormMail Generator ======================= --> <?php
if( !$isHideForm ):
global $sErr ;
if( $sErr ) print "<br><a name='error'></a><center><font class='form_error' >$sErr</font></center><br>";
$starColor = $sErr ? "#ff0000" : "#000000";
$style=" class='form_text' ";
?>
<form name="frmFormMail" action="<?php print PHP_SELF ?>" method='post' enctype='multipart/form-data'>
<input type='hidden' name='formmail_submit' value='Y'>
<input type='hidden' name='esh_formmail_recipient' value="[email protected]"> <input type='hidden' name='esh_formmail_subject' value="Someone has applied for a discount at Eternale.com"> <input type='hidden' name='esh_formmail_cc' value=""> <input type='hidden' name='esh_formmail_bcc' value=""> <input type='hidden' name='esh_formmail_return_subject' value="Thank you!"> <input type='hidden' name='esh_formmail_return_msg' value="Eternale is dedicated to offering special incentives to qualified practitioners. We will be contacting you shortly."> <input type='hidden' name='esh_formmail_mail_and_file' value=""> <input type='hidden' name='esh_formmail_charset' value=""> <table cellspacing='16' cellpadding='0' border='0' > <tr> <td class="form_field" valign='top' align='right'>What is your name? </td><td width='10' aligh='right' valign='top'> <font size='2' color='#ff0000'>*</font> </td> <td class="form_text"> <input type="text" name="What_is_your_name" value="<?php print HtmlSpecialChars( $HTTP_POST_VARS[ "What_is_your_name" ] ); ?>" class='text_box'> </td> </tr> <tr> <td class="form_field" valign='top' align='right'>Do you own or represent a Business? </td><td width='10' aligh='right' valign='top'> <font size='2' color='#ff0000'>*</font> </td> <td class="form_text"> <select name="Do_you_own_or_represent_a_Business" <? print $style; ?>>
<option value=''>- Select -</option>
<option value="Yes " <?php formSelected( $HTTP_POST_VARS[ "Do_you_own_or_represent_a_Business" ], "Yes " ); ?> > Yes
<option value=" No" <?php formSelected( $HTTP_POST_VARS[ "Do_you_own_or_represent_a_Business" ], " No" ); ?> > No
</select>
</td> </tr> <tr> <td class="form_field" valign='top' align='right'>What is the name of this Business? </td><td width='10' aligh='right' valign='top'></td> <td class="form_text"> <input type="text" name="What_is_the_name_of_this_Business" value="<?php print HtmlSpecialChars( $HTTP_POST_VARS[ "What_is_the_name_of_this_Business" ] ); ?>" class='text_box'> </td> </tr> <tr> <td class="form_field" valign='top' align='right'>What State & Country is your Business located in? </td><td width='10' aligh='right' valign='top'></td> <td class="form_text"> <input type="text" name="What_State_&_Country_is_your_Business_located_in" value="<?php print HtmlSpecialChars( $HTTP_POST_VARS[ "What_State_&_Country_is_your_Business_located_in" ] ); ?>" class='text_box'> </td> </tr> <tr> <td class="form_field" valign='top' align='right'>Please indicate your profession. </td><td width='10' aligh='right' valign='top'> <font size='2' color='#ff0000'>*</font> </td> <td class="form_text"> <select name="Please_indicate_your_profession" <? print $style; ?>>
<option value=''>- Select -</option>
<option value="Esthetician " <?php formSelected( $HTTP_POST_VARS[ "Please_indicate_your_profession" ], "Esthetician " ); ?> > Esthetician
<option value=" Cosmetologist " <?php formSelected( $HTTP_POST_VARS[ "Please_indicate_your_profession" ], " Cosmetologist " ); ?> > Cosmetologist
<option value=" Salon Owner " <?php formSelected( $HTTP_POST_VARS[ "Please_indicate_your_profession" ], " Salon Owner " ); ?> > Salon Owner
<option value=" Spa Owner " <?php formSelected( $HTTP_POST_VARS[ "Please_indicate_your_profession" ], " Spa Owner " ); ?> > Spa Owner
<option value=" Wellness Store Owner " <?php formSelected( $HTTP_POST_VARS[ "Please_indicate_your_profession" ], " Wellness Store Owner " ); ?> > Wellness Store Owner
<option value=" Biofeedback Technician" <?php formSelected( $HTTP_POST_VARS[ "Please_indicate_your_profession" ], " Biofeedback Technician" ); ?> > Biofeedback Technician
</select>
</td> </tr> <tr> <td class="form_field" valign='top' align='right'>If you are a Biofeedback Practitioner, who is your Regional Director? </td><td width='10' aligh='right' valign='top'></td> <td class="form_text"> <input type="text" name="If_you_are_a_Biofeedback_Practitioner_who_is_your_Regional_D" value="<?php print HtmlSpecialChars( $HTTP_POST_VARS[ "If_you_are_a_Biofeedback_Practitioner_who_is_your_Regional_D" ] ); ?>" class='text_box'> </td> </tr> <tr> <td class="form_field" valign='top' align='right'>If you are a Biofeedback Practitioner, when did you purchase your device? (MM/YYYY) </td><td width='10' aligh='right' valign='top'></td> <td class="form_text"> <?php
selectList( "If_you_are_a_Biofeedback_Practitioner_when_did_you_purchase__MM", $HTTP_POST_VARS["If_you_are_a_Biofeedback_Practitioner_when_did_you_purchase__MM"], 1, 12, "MM", $style ) ;
selectList( "If_you_are_a_Biofeedback_Practitioner_when_did_you_purchase__YYYY", $HTTP_POST_VARS["If_you_are_a_Biofeedback_Practitioner_when_did_you_purchase__YYYY"], date("Y"), date("Y")+3, "YYYY", $style ) ;
?>
</td> </tr> <tr> <td class="form_field" valign='top' align='right'>If you are a Biofeedback Practitioner, who taught your Beginner's Training Course? </td><td width='10' aligh='right' valign='top'></td> <td class="form_text"> <input type="text" name="If_you_are_a_Biofeedback_Practitioner_who_taught_your_Beginn" value="<?php print HtmlSpecialChars( $HTTP_POST_VARS[ "If_you_are_a_Biofeedback_Practitioner_who_taught_your_Beginn" ] ); ?>" class='text_box'> </td> </tr> <tr> <td class="form_field" valign='top' align='right'>If you are a Biofeedback Practitioner, Are you with the Quantum Alliance? </td><td width='10' aligh='right' valign='top'></td> <td class="form_text"> <select name="If_you_are_a_Biofeedback_Practitioner_Are_you_with_the_Quant" <? print $style; ?>>
<option value=''>- Select -</option>
<option value="Yes " <?php formSelected( $HTTP_POST_VARS[ "If_you_are_a_Biofeedback_Practitioner_Are_you_with_the_Quant" ], "Yes " ); ?> > Yes
<option value=" No" <?php formSelected( $HTTP_POST_VARS[ "If_you_are_a_Biofeedback_Practitioner_Are_you_with_the_Quant" ], " No" ); ?> > No
</select>
</td> </tr> <tr> <td class="form_field" valign='top' align='right'>Provide your License # for verification. (Business Lic. # if business owner, License # if practitioner) </td><td width='10' aligh='right' valign='top'></td> <td class="form_text"> <input type="text" name="Provide_your_License_#_for_verification_(Business_Lic_#_if_b" value="<?php print HtmlSpecialChars( $HTTP_POST_VARS[ "Provide_your_License_#_for_verification_(Business_Lic_#_if_b" ] ); ?>" class='text_box'> </td> </tr> <tr> <td class="form_field" valign='top' align='right'>Lastly, are you anticipating spending more than $1000 at Eternale.com, or on Eternale products, within one purchase? </td><td width='10' aligh='right' valign='top'></td> <td class="form_text"> <select name="Lastly_are_you_anticipating_spending_more_than_$1000_at_Eter" <? print $style; ?>>
<option value=''>- Select -</option>
<option value="Yes " <?php formSelected( $HTTP_POST_VARS[ "Lastly_are_you_anticipating_spending_more_than_$1000_at_Eter" ], "Yes " ); ?> > Yes
<option value=" No" <?php formSelected( $HTTP_POST_VARS[ "Lastly_are_you_anticipating_spending_more_than_$1000_at_Eter" ], " No" ); ?> > No
</select>
</td> </tr> <tr><td colspan=3 align='center'><input type='submit' value='Submit'> <input type='button' value='Cancel' onclick="location.href='/';"></td></tr> </table>
</form>
<?php
if( $sErr ) print "<script language='javascript' type='text/javascript'>location.href='#error';</script>";;;
else: //!$isHideForm
print( "<br><br><hr><center><b>Your form has been sent. Thank you.</b><br><br><input type='button' value='Home' onclick=\"location.href='/';\"></center><br><br>" );
endif; //!$isHideForm
<br><br><br><br>
</div>
<br><br><br>
</html>
Am I doing something wrong?
Link to the page: http://www.eternale.com/cart/index.php?main_page=page_2