I find that my website get weird when I use Firefox open it, but it display well under IE8, the buttonesubmit is moved to bottomfooter, can anyone help me improve the code below. thank you.

<form action="contact.php" method="post" name="formplace" target="_blank" class="email" id="formplace" onsubmit="MM_validateForm('firstname','','R','lastname','','R','emailaddress','','NisEmail','comments','','R');return document.MM_returnValue">
      <p>pls contact us by following address:<br />
        <br />
      <p> You could also fill in below form and send it to us. we will get back to you as soon as possible.<br />
        <br />
        First Name: 
        <label for="firstname"></label>
        <input type="text" name="firstname" id="firstname" />
        <br />
        <br />
        Lsat Name:
        <label for="lastname"></label>
        <input type="text" name="lastname" id="lastname" />
        <br />
        <br />
        Email Address:
        <label for="emailaddress"></label>
        <input type="text" name="emailaddress" id="emailaddress" />
        <br />
        <br />
        <label for="telephone2"></label>
        <input type="text" name="telephone" id="telephone" />
        <label for="TEL"></label>
        <br />
        <br />
        <label for="country"></label>
        <select name="country" id="country">

          <option>South Korea</option>
        <br />
        <br />
        <label for="business"></label>
        <select name="business" id="business">
        <label for="telephone"></label>
        <label for="FAX"></label>
        <br />
        <br />
        Comments:<br />
        <br />
        <label for="comments"></label>
        <textarea name="comments" id="comments" cols="45" rows="5"></textarea>
        <br />
        <br />
        <input name="submit" type="submit" id="submit" onclick="MM_validateForm('firstname','','R','lastname','','R','emailaddress','','RisEmail','telephone','','NisNum','comments','','R');return document.MM_returnValue" value="Submit" />
        <br />

Recommended Answers

All 5 Replies

I would recommend you to use Style attribute on each field. With this you will have uniform in all browsers

<input type="text" name="firstname" id="firstname" Style="z-index: 105; left: 200px; position: absolute; top: 200px" />
<input type="text" name="lastname" id="lastname" Style="z-index: 105; left: 200px; position: absolute; top: 230px" />


No.Use must not use inline css.You must prefer separating the two.Create an external css style sheet .
An external style sheet is ideal when the style is applied to many pages.Each page must link to the style sheet using the <link> tag.

You may use internal css when the style is for a particular file.

Hello Thank you two, I prefer f2key method, but unfortunately, I don't fully understand the code, I have tried it by inserting it to the form area but the display is not what i expect, only a box displayed and there is no firstname displayed, in addition, when I try to use it for select items, like business, country, all the business items was displayed on the screen, there is no dropdown arrow for selection.

I know that my problem is basic and I only know some Dreamweavr methods, and don't know the code at all. so any one could take time to teach me

  • how to display lastname, firstname etc

  • Item Two: how to keep display text in the same line with box

  • Item Three; I don't know z-index:105 meaning, I delete it, or change it, the display is still same.

thanks if any one tell me detail.

From the above article and reply, I understand that it is importent to know the basic code. Any one can help me to understand please.

Google 'basic html tutorial' and 'basic css tutorial' All the info you need to
get stsrted is there. Just don't try to run before you can walk.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.