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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Incorrect information received from PHP form using Dreamweaver

Status
Not open for further replies.

Pimptwist02

Technical User
Jan 31, 2007
21
US
Ok as one helpful member already knows(you know who you are) my setup is the following.

GoDaddy and Dreamweaver 8

I have a form which consists of multiple fill in the blank text fields and several drag down menu options for the clients to fill out.

Yet when I fill out this information(say 20 questions in total)

I receive via e-mail only 5 answers in total.

Yet these answers are nowhere near whats been inputted by the user.

Example

Whats you cell phone number? - 555-555-5555

I get - E

Heh. Why?!?

Here is the code that I have for the questionnaire

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "<html xmlns="<!-- DW6 -->
<head>
<!-- Copyright 2005 Macromedia, Inc. All rights reserved. -->
<title>Questions</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" href="mm_travel2.css" type="text/css" />
<script language="JavaScript" type="text/javascript">
//--------------- LOCALIZEABLE GLOBALS ---------------
var d=new Date();
var monthname=new Array("January","February","March","April","May","June","July","August","September","October","November","December");
//Ensure correct for language. English is "January 1, 2004"
var TODAY = monthname[d.getMonth()] + " " + d.getDate() + ", " + d.getFullYear();
//--------------- END LOCALIZEABLE ---------------
</script>
</head>
<body bgcolor="#C0DFFD">
<form action="gdform.php" method="post">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr bgcolor="#3366CC">
<td width="382" colspan="2" rowspan="2" nowrap="nowrap"><img src="mm_travel_photo.jpg" alt="Header image" width="382" height="127" border="0" /></td>
<td width="378" height="63" id="logo" valign="bottom" align="center" nowrap="nowrap"><u>Nexus Mortgage Inc.</u> </td>
<td width="100%">&nbsp;</td>
</tr>
<tr bgcolor="#3366CC">
<td height="64" id="tagline" valign="top" align="center">&nbsp;</td>
<td width="100%">&nbsp;</td>
</tr>
<tr>
<td colspan="4" bgcolor="#003366"><img src="mm_spacer.gif" alt="" width="1" height="1" border="0" /></td>
</tr>

<tr bgcolor="#CCFF99">
<td>&nbsp;</td>
<td colspan="3" id="dateformat" height="25"><a href="/index.html">HOME</a> ::
<script language="JavaScript" type="text/javascript">
document.write(TODAY); </script> </td>
</tr>
<tr>
<td colspan="4" bgcolor="#003366"><img src="mm_spacer.gif" alt="" width="1" height="1" border="0" /></td>
</tr>
<tr>
<td width="40">&nbsp;</td>
<td colspan="2" valign="top">&nbsp;<br />
&nbsp;<br />
<table border="0" cellspacing="0" cellpadding="2" width="539">
<tr>
<td width="535" class="pageName">Online Questionnaire </td>
</tr>
<tr>

<td class="bodyText"><p><div id=maincontent style="width:100%">
<div id="left_stuff" style="float:left;">
<div id="textboxwrapper" style="overflow:hidden; width:300px; border:0px solid #FFFFFF;"><span id="label" style="float:left;" >Value of Home</span><span id="textbox" style="float:right;"><input type=text name="mytextbox"></span></div>
<div id="textboxwrapper" style="overflow:hidden; width:300px; border:0px solid #FFFFFF;"><span id="label" style="float:left;">Purchase Price</span><span id="textbox" style="float:right;"><input type=text name="mytextbox"></span></div>
<div id="textboxwrapper" style="overflow:hidden; width:300px; border:0px solid #FFFFFF;"><span id="label" style="float:left;">Loan Amount</span><span id="textbox" style="float:right;"><input type=text name="mytextbox"></span></div>
<div id="textboxwrapper" style="overflow:hidden; width:300px; border:0px solid #FFFFFF;"><span id="label" style="float:left;">First time buyer? Yes / No</span><span id="textbox" style="float:right;">
<input type=text name="mytextbox"></span></div><div id="textboxwrapper" style="overflow:hidden; width:300px; border:0px solid #FFFFFF;"><span id="label" style="float:left;">Down Payment Amount?</span><span id="textbox" style="float:right;"><input type=text name="mytextbox"></span></div>
<div id="textboxwrapper" style="overflow:hidden; width:300px; border:0px solid #FFFFFF;"><span id="label" style="float:left;">Sales Contract? Yes / No</span><span id="textbox" style="float:right;">
<input type=text name="mytextbox"></span></div><div id="textboxwrapper" style="overflow:hidden; width:300px; border:0px solid #FFFFFF;"><span id="label" style="float:left;">Anticipated Closing Date</span><span id="textbox" style="float:right;"><input type=text name="mytextbox"></span></div>
<div id="textboxwrapper" style="overflow:hidden; width:300px; border:0px solid #FFFFFF;"><span id="label" style="float:left;">Have an agent? Yes / No </span><span id="textbox" style="float:right;">
<input type=text name="mytextbox"></span></div></p><br />

<p><div id="textboxwrapper" style="overflow:hidden; width:300px; border:0px solid #FFFFFF;"><span id="label" style="float:left;" >First Name</span><span id="textbox" style="float:right;"><input type=text name="mytextbox"></span></div>
<div id="textboxwrapper" style="overflow:hidden; width:300px; border:0px solid #FFFFFF;"><span id="label" style="float:left;">Last Name</span><span id="textbox" style="float:right;"><input type=text name="mytextbox"></span></div>
<div id="textboxwrapper" style="overflow:hidden; width:300px; border:0px solid #FFFFFF;"><span id="label" style="float:left;">Address</span><span id="textbox" style="float:right;"><input type=text name="mytextbox"></span></div>
<div id="textboxwrapper" style="overflow:hidden; width:300px; border:0px solid #FFFFFF;"><span id="label" style="float:left;">City, State, Zip</span><span id="textbox" style="float:right;"><input type=text name="mytextbox"></span></div><div id="textboxwrapper" style="overflow:hidden; width:300px; border:0px solid #FFFFFF;"><span id="label" style="float:left;">Employed? Yes / No</span><span id="textbox" style="float:right;"><input type=text name="mytextbox"></span></div>
<div id="textboxwrapper" style="overflow:hidden; width:300px; border:0px solid #FFFFFF;"><span id="label" style="float:left;">Co-Borrower? Yes / No</span><span id="textbox" style="float:right;">
<input type=text name="mytextbox"></span></div><div id="textboxwrapper" style="overflow:hidden; width:300px; border:0px solid #FFFFFF;"><span id="label" style="float:left;">Home Phone Number</span><span id="textbox" style="float:right;"><input type=text name="mytextbox"></span></div><div id="textboxwrapper" style="overflow:hidden; width:300px; border:0px solid #FFFFFF;"><span id="label" style="float:left;">Work Number</span><span id="textbox" style="float:right;"><input type=text name="mytextbox"></span></div><div id="textboxwrapper" style="overflow:hidden; width:300px; border:0px solid #FFFFFF;"><span id="label" style="float:left;">Cell Number</span><span id="textbox" style="float:right;"><input type=text name="mytextbox"></span></div><div id="textboxwrapper" style="overflow:hidden; width:300px; border:0px solid #FFFFFF;"><span id="label" style="float:left;">E-mail</span><span id="textbox" style="float:right;"><input type=text name="mytextbox"></span></div><div id="textboxwrapper" style="overflow:hidden; width:300px; border:0px solid #FFFFFF;"><span id="label" style="float:left;">Best time to call</span><span id="textbox" style="float:right;"><input type=text name="mytextbox"></span></div>
</div>

<div id="right_stuff" style="float:right;">
<p><strong><u>Property Type</u></strong><br />
<br />
<SELECT name="Property Type">
<OPTION value=a>Single Family Residence</OPTION>
<OPTION value=b>Condominium / Townhome</OPTION>
<OPTION value=c>Second Home</OPTION>
<OPTION value=d>Investment Home</OPTION>
</SELECT>
<br />
<br />
<br />
<br />
<br />
<br />
<strong><u>Loan Purpose</u></strong><br />
<br />
<SELECT name="Loan Purpose">
<OPTION value=a>Purchase</OPTION>
<OPTION value=b>Refinance</OPTION>
<OPTION valuec=>Cash-out / Debt Consolidation</OPTION>
<OPTION value=d>New Construction</OPTION>
<OPTION value=e>Permanent Financing</OPTION>
</SELECT>
<br />
<br />
<br />
<br />
<br />
<br />
<strong><u>Estimated Credit Score</u></strong><br />
<br />
<SELECT name="Estimated Credit Score">
<OPTION value=a>580-620</OPTION>
<OPTION value=b>620-640</OPTION>
<OPTION value=c>640-680</OPTION>
<OPTION value=d>680-720</OPTION>
<OPTION value=e>720+</OPTION>
<OPTION value=f>Unknown</OPTION>
</SELECT>
</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
</div>

</div></p>



</td>
</tr>
</table> </td>
<td width="100%">&nbsp;</td>
</tr>

<tr>
<td width="40">&nbsp;</td>
<td width="342">&nbsp;</td>
<td width="378">&nbsp;</td>
<td width="100%">&nbsp;</td>
</tr>
</table>
<input type=submit name="send" value="Submit Questionnaire">
</form>
</body>
</html>
 
Probably something to do with not closing the <input> tags. It's worth validating your page if your having problems - at present you're showing 157 validation errors - although most are simply use of <id> when you want <class>

Have a look at this:
and come back if you're still having problems when your page validates

___________________________________________________________
If you want the best response to a question, please check out FAQ222-2244 first.
'If we're supposed to work in Hex, why have we only got A fingers?'
Drive a Steam Roller
Steam Engine Prints
 
Im sure that would be helpful to someone that knows what all that means. But 10 minutes of looking at it just gave me one heck of a headache. Anyone able to dumb it down for me?
 
Validating is always good, but for starters I would first go back and give each textbox a different name, and the "Select" boxes a valid name without spaces. Don't know how I missed that back in the other thread.

In case:

Code:
<div id="textboxwrapper" style="overflow:hidden; width:300px; border:0px solid #FFFFFF;"><span id="label" style="float:left;">Address</span><span id="textbox" style="float:right;"><input type=text name="[red]addy[/red]"></span></div>

and

Code:
<div id="textboxwrapper" style="overflow:hidden; width:300px; border:0px solid #FFFFFF;"><span id="label" style="float:left;">City, State, Zip</span><span id="textbox" style="float:right;"><input type=text name="[red]cty[/red]"></span></div>
etc..

and

<select name="a_valid_name_no_spaces">...

etc...






----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
Thanks guys.... I've changed what ya said vacunita , and now Im going to give GoDaddy the hour i needs to send the form. Ill post the results when I get them.


Thanks guys!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top