Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

problem with forms...

Status
Not open for further replies.

noslenwerd

Programmer
May 2, 2005
59
US
For some reason i can't get any of these phone numbers to show when they are being emailed to the recipient. Everything else shows fine. Here is where the data is actually entered


And here is what the email looks like


Here is a little snippit of code...

<span class="">ALL VENDORS MUST BE ABLE TO RECEIVE ALL ASSIGNMENTS AND STATUS UPDATES VIA EMAIL.</span>
<table border="0">
<br />
<tr>
<td class="">Physical/Fed Ex Address<br />Street Address:</td>
<td class="">City:</td>
<td class="">State:</td>
<td class="">Zipcode:</td>
</tr>
<tr>
<td class=""><input type="text" size="20" name="Physical_Address" maxlength="70"></td>
<td class=""><input type="text" size="20" name="Physical_City" maxlength="70"></td>
<td class=""><input type="text" size=2 name="Physical_State" maxlength="2"></td>
<td class=""><input type="text" size=8 name="Physical_Zip_Code" maxlength="5" onBlur="IsNumber('app', 'Physical_Zip_Code')"></td>
</tr>
<tr>
<td class="">Mailing Address<br />Street Address:</td>
<td class="">City:</td>
<td class="">State:</td>
<td class="">Zipcode:</td>
</tr>
<tr>
<td class=""><input type="text" size="20" name="Mailing_Address" maxlength="70"></td>
<td class=""><input type="text" size="20" name="Mailing_City" maxlength="70"></td>
<td class=""><input type="text" size=2 name="Mailing_State" maxlength="2"></td>
<td class=""><input type="text" size=8 name="Mailing_Zip_Code" maxlength="5" onBlur="IsNumber('app', 'Mailing_Zip_Code')"></td>
</tr>
</table>
<table border="0">
<br />
<tr>
<td class=""><span class="req">*</span>Office:</td>
<td class="">
<input type="hidden" name="Office_Phone">
<input type="text" size=3 name="_Office_Phone1" maxlength="3" onKeyDown="TabNext(this,'down',3)" onKeyUp="TabNext(this,'up',3,this.form._Office_Phone2)" onBlur="IsNumber('app', '_Office_Phone1');makePhoneExt('app','_Office_Phone1','_Office_Phone2','_Office_Phone3','_Office_Phone4','Office_Phone')"> -
<input type="text" size=3 name="_Office_Phone2" maxlength="3" onKeyDown="TabNext(this,'down',3)" onKeyUp="TabNext(this,'up',3,this.form._Office_Phone3)" onBlur="IsNumber('app', '_Office_Phone2');makePhoneExt('app','_Office_Phone1','_Office_Phone2','_Office_Phone3','_Office_Phone4','Office_Phone')"> -
<input type="text" size=3 name="_Office_Phone3" maxlength="4" onKeyDown="TabNext(this,'down',4)" onKeyUp="TabNext(this,'up',4,this.form._Office_Phone4)" onBlur="IsNumber('app', '_Office_Phone3');makePhoneExt('app','_Office_Phone1','_Office_Phone2','_Office_Phone3','_Office_Phone4','Office_Phone')"> <input type="text" size=4 name="_Office_Phone4" maxlength="5" onBlur="IsNumber('app', '_Office_Phone4');makePhoneExt('app','_Office_Phone1','_Office_Phone2','_Office_Phone3','_Office_Phone4','Office_Phone')"></td>

<td class="">Home:</td>
<td class="">
<input type="hidden" name="Home_Phone">
<input type="text" size=3 name="_Home_Phone1" maxlength="3" onKeyDown="TabNext(this,'down',3)" onKeyUp="TabNext(this,'up',3,this.form._Home_Phone2)" onBlur="IsNumber('app', '_Home_Phone1');makePhone('app','_Home_Phone1','_Home_Phone2','_Home_Phone3','Home_Phone')"> -
<input type="text" size=3 name="_Home_Phone2" maxlength="3" onKeyDown="TabNext(this,'down',3)" onKeyUp="TabNext(this,'up',3,this.form._Home_Phone3)" onBlur="IsNumber('app', '_Home_Phone2');makePhone('app','_Home_Phone1','_Home_Phone2','_Home_Phone3','Home_Phone')"> -
<input type="text" size=3 name="_Home_Phone3" maxlength="4" onBlur="IsNumber('app', '_Home_Phone3');makePhone('app','_Home_Phone1','_Home_Phone2','_Home_Phone3','Home_Phone')"></td>
</tr>
<tr>
<td class="">Pager:</td>
<td class="">
<input type="hidden" name="Pager_No">
<input type="text" size=3 name="_Pager_Phone1" maxlength="3" onKeyDown="TabNext(this,'down',3)" onKeyUp="TabNext(this,'up',3,this.form._Pager_Phone2)" onBlur="IsNumber('app', '_Pager_Phone1');makePhone('app','_Pager_Phone1','_Pager_Phone2','_Pager_Phone3','Pager_No')"> -
<input type="text" size=3 name="_Pager_Phone2" maxlength="3" onKeyDown="TabNext(this,'down',3)" onKeyUp="TabNext(this,'up',3,this.form._Pager_Phone3)" onBlur="IsNumber('app', '_Pager_Phone2');makePhone('app','_Pager_Phone1','_Pager_Phone2','_Pager_Phone3','Pager_No')"> -
<input type="text" size=3 name="_Pager_Phone3" maxlength="4" onBlur="IsNumber('app', '_Pager_Phone3');makePhone('app','_Pager_Phone1','_Pager_Phone2','_Pager_Phone3','Pager_No')"></td>

<td class="">Cell:</td>
<td class="">
<input type="hidden" name="Cell_Phone">
<input type="text" size=3 name="_Cell_Phone1" maxlength="3" onKeyDown="TabNext(this,'down',3)" onKeyUp="TabNext(this,'up',3,this.form._Cell_Phone2)" onBlur="IsNumber('app', '_Cell_Phone1');makePhone('app','_Cell_Phone1','_Cell_Phone2','_Cell_Phone3','Cell_Phone')"> -
<input type="text" size=3 name="_Cell_Phone2" maxlength="3" onKeyDown="TabNext(this,'down',3)" onKeyUp="TabNext(this,'up',3,this.form._Cell_Phone3)" onBlur="IsNumber('app', '_Cell_Phone2');makePhone('app','_Cell_Phone1','_Cell_Phone2','_Cell_Phone3','Cell_Phone')"> -
<input type="text" size=3 name="_Cell_Phone3" maxlength="4" onBlur="IsNumber('app', '_Cell_Phone3');makePhone('app','_Cell_Phone1','_Cell_Phone2','_Cell_Phone3','Cell_Phone')"></td>
</tr>
<tr>
<td class="">Fax:</td>
<td class="">
<input type="hidden" name="Fax_No">
<input type="text" size=3 name="_Fax_Phone1" maxlength="3" onKeyDown="TabNext(this,'down',3)" onKeyUp="TabNext(this,'up',3,this.form._Fax_Phone2)" onBlur="IsNumber('app', '_Fax_Phone1');makePhone('app','_Fax_Phone1','_Fax_Phone2','_Fax_Phone3','Fax_No')"> -
<input type="text" size=3 name="_Fax_Phone2" maxlength="3" onKeyDown="TabNext(this,'down',3)" onKeyUp="TabNext(this,'up',3,this.form._Fax_Phone3)" onBlur="IsNumber('app', '_Fax_Phone2');makePhone('app','_Fax_Phone1','_Fax_Phone2','_Fax_Phone3','Fax_No')"> -
<input type="text" size=3 name="_Fax_Phone3" maxlength="4" onBlur="IsNumber('app', '_Fax_Phone3');makePhone('app','_Fax_Phone1','_Fax_Phone2','_Fax_Phone3','Fax_No')"></td>

<td class="">Other:</td>
<td class="">
<input type="hidden" name="Other">
<input type="text" size=3 name="_Other_Phone1" maxlength="3" onKeyDown="TabNext(this,'down',3)" onKeyUp="TabNext(this,'up',3,this.form._Other_Phone2)" onBlur="IsNumber('app', '_Other_Phone1');makePhone('app','_Other_Phone1','_Other_Phone2','_Other_Phone3','Other')"> -
<input type="text" size=3 name="_Other_Phone2" maxlength="3" onKeyDown="TabNext(this,'down',3)" onKeyUp="TabNext(this,'up',3,this.form._Other_Phone3)" onBlur="IsNumber('app', '_Other_Phone2');makePhone('app','_Other_Phone1','_Other_Phone2','_Other_Phone3','Other')"> -
<input type="text" size=3 name="_Other_Phone3" maxlength="4" onBlur="IsNumber('app', '_Other_Phone3');makePhone('app','_Other_Phone1','_Other_Phone2','_Other_Phone3','Other')"></td>
</tr>
</table>
 
OK... imagine for a moment that we have no idea what your code is supposed to do. Why just paste a snippet of code?

Help yourself by pasting relevant code. Think about the problem and describe it to us without assuming that we know every intimate detail about your problem.

How are you sending the email? Have you made any effort to track down why this might be happening? What were you able to narrow it down to?

If you are sending the email using some server-side code then I am picking that you are not accessing the correct form data.

Check your form element names are correctly spelt too!

If you are using PHP... use the echo command to echo data to the page as part of your debugging process.

Jeff

[tt]Jeff's Page [/tt][tt]@[/tt][tt] Code Couch
[/tt]
 
Looking at your snippet, I would say that all that javascript jumble ends up not sending the phone information or sends it in a different fields that you expect. Simplify and look for an error.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top