Hey guys just looking for a bit of help here.
I'm to combine a few fieldsets and tables together. I'm using PHP as my coding. I really like how the page is looking, except I can't get anything from the form. So is it possible to combine fieldsets with regular form fields? This is the only thing I can come up with. Here's a bit of my code as an example.
Code:
<form method="POST" name="input" action="checkout.php">
<fieldset>
<legend>General Information</legend>
<table><tr><td width="150">First Name:</td><td><input type="text" size="20" name="fname" value="<?php echo $fname; ?>" maxlength="15" /></td></tr>
<tr><td>Last Name:</td><td><input type="text" size="20" name="lname" maxlength="15" /></td></tr>
<tr><td>Telephone:</td><td><input type="text" size="20" name="phone" maxlength="10" /> </td><td>Example: 4161234567</td></tr>
<tr><td>E-mail Address:</td><td><input type="text" size="20" name="email" maxlength="25" /></td></tr>
<tr><td><input type="submit" name="submit" value="Continue"></input>
</table>
</fieldset>
</form>
<?php
$fname = $_POST['fname'];
echo $fname;
?>
If I echo anything else under "echo $fname" it does work, so the code isn't hanging up anywhere. Did I just make a stupid mistake somewhere and I missed it?
Eventually I want to have it so I can display what they entered into the form with using the "value" tag, but I'll be happy enough with it just getting something from my form at the moment.
Thanks for the help guys.