Web Design Forum: Spreading over 2 columns - Web Design Forum

Jump to content

WDF
WDF Premium Memberships Reseller Hosting
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Spreading over 2 columns action="????????" Rate Topic: -----

#1 User is offline   jame5payne 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 48
  • Joined: 02-December 11
  • Reputation: 0

Posted 25 January 2012 - 10:55 AM

Morning all.

So I thought I had it working yesterday but obviously not!

Here's my situation.

I have a contact form which is spread over two columns. So I thought as it is split I'll do the same with my php form. First question....is this correct? If so how would i reflect this in "action"? At the moment I have for the first column...

<form id="quote" method="post" action="contact1.php " >

and the second column...

<form id="quote" method="post" action="contact2.php" >

Problem is my submit button is in the second column so only the second part of the form is being submitted to an email address?

Have I completely buggered this up? Am I going in the wrong direction? Can I get this to work? Or should i give up now and go get a STROOOONGGGG coffee? :unknw:

As always any tips/advice would be greatly appreciated.

James
0

#2 User is offline   simplypixie 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 62
  • Joined: 23-November 11
  • Reputation: 11
  • Gender:Female
  • Location:Shropshire
  • Experience:Intermediate
  • Area of Expertise:Web Developer

Posted 25 January 2012 - 12:14 PM

You can only submit to one form at a time so as you have created a new form in each column, only the one with the associated submit button will work.

If you want to keep the format you need to do something like this:
<form id="quote" method="post" action="contact1.php ">
<table>
<tr><td>Form field on left column</td><td>Form field in right column</td>
<tr><td>Form field on left column</td><td>Form field in right column</td>
<!-- And so on for all for table rows and form fields -->
<tr><td>Leave blank??</td><td>Put submit button here</td></tr>
</table>
</form>

0

#3 User is offline   jame5payne 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 48
  • Joined: 02-December 11
  • Reputation: 0

Posted 25 January 2012 - 12:23 PM

Yeah...I had a feeling that would be the case. Thanks for your help :good:
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users