Jump to content

Recommended Posts

Hi,

I was wondering why I can't get my form to work. 

 

<form id="order_1" action="process1.php" method="POST">
<table>
<tr><td>Email:			</td><td><input 	
			type="text" 
			name="email" 
			id="email" 
			value="" /></td></tr>

<tr><td>Name:			</td><td><input 	
			type="text" 
			name="name" 
			id="name" 
			value="" /></td></tr>

<tr><td>Address:		</td><td><textarea 
			name="address" 
			rows="4" 
			id="address"></textarea></td></tr>

<tr><td>Phone:			</td><td><input 	
			type="text" 
			name="phone" 
			id="phone" 
			value="" /></td></tr>

<tr><td>Additional comments:	</td><td><textarea 
			name="comments" 
			rows="5" 
			id="comments"></textarea></td></tr>

<tr><td></td><td><input class="submit" type="submit" value="Continue" /></td></tr>
</table>
</form>

 

When I fill in all the fields, submit the form and do var_dump on it, this is what I get:

array(3) {
  ["email"]=>
  string(23) "emailaddress@domain.com"
  ["name"]=>
  string(12) "212-312-8982"
  ["comments"]=>
  string(38) "I have no additional comments to make."
}

 

As you can see, not only is it ignoring 2 fields, but the phone field is coming in as "name".  I went through the code over and over again to see what I could have typed wrong, and I tried different things, but I've finally run out of ideas.

 

If anyone can shed light on this, I would be very grateful.  Thank you.

 

Rick

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.