HTML text area appears in the wrong place

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hey gang,

Quick q here. And I think this might be an easy one. But I'm unsure as to why this is happening. 

I've created a text area in an HTML form with the intention of getting the user to enter an address. 

       <tr>
            <td>Address</td>
            <textarea name="address" form="usrform">Enter text here...</textarea>
        </tr>

But when I put that into the form, the resulting web page shows the text area at the TOP above the rest of the elements. This is what it looks like:

Inline image 1
You can also view this form here:

http://php.lyricgem.com/ch01/orderform.html


Here's the rest of this form:

<!doctype html>
<html lang="en-us">
<head>
    <meta charset="utf-8">
    <title>Order Form</title>
</head>
<body>
<form action="" method="post" id="usrform">
    <table border="0">
        <tr bgcolor="#cccccc">
            <td width="150">Item</td>
            <td width="15">Quantity</td>
        </tr>
        <tr>
            <td>Tires</td>
            <td align="center"> <input type="text" name="tireqty" size="3" maxlength="3" /></td>
        <tr>
        <td>Oil</td>
        <td align="center"><input type="text" name="oilqty" size="3" maxlength="3" /></td>
        </tr>
        <tr>
            <td>Spark Plugs</td>
            <td align="center"><input type="text" name="sparkqty" size="3" maxlength="3" /></td>
        </tr>
        <tr>
            <td>Address</td>
            <textarea name="address" form="usrform">Enter text here...</textarea>
        </tr>
        <tr>
            <td colspan="2" align="center"><input type="submit" value="Submit Order" /></td>
        </tr>


        <tr>
            <td>How did you find Bob’s?</td>
            <td><select name="find">
                <option value="a">I’m a regular customer</option>
                <option value="b">TV advertising</option>
                <option value="c">Phone directory</option>
                <option value="d">Word of mouth</option>
                <option selected="selected" value="e">Don't know</option>
            </select>
            </td>
        </tr>
    </table>
</form>
</body>

I realize that this question isn't strictly PHP related. But I also that HTML forms like this are sort of commonplace in working with PHP. I definitely appreciate any help you may be able to provide!

Thanks
Tim

--
GPG me!!

gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux