Jump to content

Recommended Posts

Hi, I've made a form. It looks wrong. You can see it here - http://names-not-numbers.co.uk/sponsor/. Why are the radio buttons all shacked up?

 

CSS:

* {margin:0; padding:0}
.form {float:left; padding:0 10px 10px 10px; background:#f3f3f3; border:2px solid #cfcfcf}
.form label {float:right; width:216px; padding:10px 10px 0 0; font-weight:bold}
.form select {float:left; width:269px; margin-top:0px}
.form input {float:left; margin-top:0px}
.form .submit {clear:both}
#msg {display:none; position:absolute; z-index:200; background:url(images/msg_arrow.gif) left center no-repeat; padding-left:7px}
#msgcontent {display:block; background:#f3e6e6; border:2px solid #924949; border-left:none; padding:5px; min-width:150px; max-width:250px}

 

HTML:

<form name="form" id="form" class="form" action="payment.php" onsubmit="return validate(this)" method="post">
<table width="485"  border="0" cellspacing="0" cellpadding="0">
  <tr>
   <td width="216" align="right"><label for="name">Full Name:</label></td>
    <td width="269"><input type="text" name="name" id="name" /></td>
  </tr>
  <tr>
    <td width="216" align="right"><label for="email">Email Address:</label></td>
    <td width="269"><input type="text" name="email" id="email" /></td>
  </tr>  
  <tr>
    <td width="216" align="right"><label for="address">First line of address:</label></td>
    <td width="269"><input type="text" name="address" id="address" /></tr>
  <tr>
    <td align="right"><label for="address2">Second line of address:</label></td>
    <td><input type="text" name="address2" id="address2" />  
  </tr>
  <tr>
    <td align="right"><label for="city">City:</label></td>
    <td><input type="text" name="city" id="city" />  
  </tr>
  <tr>
    <td align="right"><label for="county">County:</label></td>
    <td><input type="text" name="county" id="county" />  
  </tr>
  <tr>
    <td align="right"><label for="postcode">Postcode:</label></td>
    <td><input type="text" name="postcode" id="postcode" />  
  </tr>
  <tr>
    <td align="right"><label for="giftaid">Are you eligible to pay gift aid?</label></td>
    <td><input type="radio" name="giftaid" value=1 checked> Yes
    <input type="radio" name="giftaid" value=0 checked> No
    <br>  
  </tr>  
  <tr>
    <td align="right">Payment method</td>
    <td><input type="radio" name="payment" value="online" checked> Online Payment 
    <input type="radio" name="payment" value="cheque" checked> Cheque 
    <input type="radio" name="payment" value="cash" checked> Cash 
  </tr>
  <tr>
    <td colspan="2">     </td>
  </tr>
</table>  

 

And yes, i know theres no submit so far.

Link to comment
https://forums.phpfreaks.com/topic/152099-forms-form-forms/
Share on other sites

<form name="form" id="form" class="form" action="payment.php" onsubmit="return validate(this)" method="post">
<table width="485"  border="0" cellspacing="0" cellpadding="0">
  <tr>
   <td width="216" align="right"><label for="name">Full Name:</label></td>
    <td width="269"><input type="text" name="name" id="name" /></td>
  </tr>
  <tr>
    <td width="216" align="right"><label for="email">Email Address:</label></td>
    <td width="269"><input type="text" name="email" id="email" /></td>
  </tr> 
  <tr>
    <td width="216" align="right"><label for="address">First line of address:</label></td>
    <td width="269"><input type="text" name="address" id="address" /></tr>
  <tr>
    <td align="right"><label for="address2">Second line of address:</label></td>
    <td><input type="text" name="address2" id="address2" /> 
  </tr>
  <tr>
    <td align="right"><label for="city">City:</label></td>
    <td><input type="text" name="city" id="city" /> 
  </tr>
  <tr>
    <td align="right"><label for="county">County:</label></td>
    <td><input type="text" name="county" id="county" /> 
  </tr>
  <tr>
    <td align="right"><label for="postcode">Postcode:</label></td>
    <td><input type="text" name="postcode" id="postcode" /> 
  </tr>
  <tr>
    <td align="right"><label for="giftaid">Are you eligible to pay gift aid?</label></td>
    <td><input type="radio" name="giftaid" value=1 checked> Yes
    <input type="radio" name="giftaid" value=0 checked> No
    <br> 
  </tr> 
  <tr>
    <td align="right" valign="top">Payment method</td>
    <td><input type="radio" name="payment" value="online" checked> Online Payment 
    <input type="radio" name="payment" value="cheque" checked> Cheque 
    <input type="radio" name="payment" value="cash" checked> Cash 
  </tr>
  <tr>
    <td colspan="2">     </td>
  </tr>
</table>

Link to comment
https://forums.phpfreaks.com/topic/152099-forms-form-forms/#findComment-807091
Share on other sites

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.