Hi
I have just created a simple feedback form for a person requesting an information brochure using PHP. Everything works fine. However there is a problem...when the user clicks the link on my home page which is just a button taking them to the Brochure Request page, when the Brochure request page opens up it opens up with the first input field at the very top of the page. As a result the very top of the page is missed out, and the user has to scroll up to see it. Is this some kind of default action to do with where the cursor is in the input field?
The code for the first 2 input fields is as follows:
<tr><td>
<label for "sub">Subject:</label>
</td>
<td><INPUT class="text" TYPE="TEXT" SIZE="28" NAME="sub" value="Information Brochure Request" title="You do not need to edit this field">
</td></tr>
<!--FIELD2 EMAIL**************-->
<tr><td>
<label for="email">Your email address:</label>
</td>
<td>
<INPUT class="text" TYPE="TEXT" SIZE="28" NAME="email" value="<? echo $email; ?>" title="Please enter your email address">
</td></tr>
Essentially the first input field is filled in by default as the subject heading called "Information Brochure Request", and the second input field is left empty for the user to enter their email address. However I was not sure how to make the first input field read-only so the user could not edit it, but yet the value of the field would still remain - the value being the text: "Information Brochure Request". The cursor still flashes in the first input field. Is it a case of changing the 'type' of field from 'input' to something else?
However onto my main problem - why when the user clicks into the page does it start from the first input field instead of the top of the whole page as normal? Is it something to do with the fact I have already entered a value in the first input field?
Thank you for any help or insight into solving my two problems.
MHUK
I have just created a simple feedback form for a person requesting an information brochure using PHP. Everything works fine. However there is a problem...when the user clicks the link on my home page which is just a button taking them to the Brochure Request page, when the Brochure request page opens up it opens up with the first input field at the very top of the page. As a result the very top of the page is missed out, and the user has to scroll up to see it. Is this some kind of default action to do with where the cursor is in the input field?
The code for the first 2 input fields is as follows:
<tr><td>
<label for "sub">Subject:</label>
</td>
<td><INPUT class="text" TYPE="TEXT" SIZE="28" NAME="sub" value="Information Brochure Request" title="You do not need to edit this field">
</td></tr>
<!--FIELD2 EMAIL**************-->
<tr><td>
<label for="email">Your email address:</label>
</td>
<td>
<INPUT class="text" TYPE="TEXT" SIZE="28" NAME="email" value="<? echo $email; ?>" title="Please enter your email address">
</td></tr>
Essentially the first input field is filled in by default as the subject heading called "Information Brochure Request", and the second input field is left empty for the user to enter their email address. However I was not sure how to make the first input field read-only so the user could not edit it, but yet the value of the field would still remain - the value being the text: "Information Brochure Request". The cursor still flashes in the first input field. Is it a case of changing the 'type' of field from 'input' to something else?
However onto my main problem - why when the user clicks into the page does it start from the first input field instead of the top of the whole page as normal? Is it something to do with the fact I have already entered a value in the first input field?
Thank you for any help or insight into solving my two problems.
MHUK