Normally, arriving at a PHP page with a data entry web form, you would have to click on any field you wish to change to go into data entry mode (the first field or any successive one), and then you can tab between fields (TAB to go forward or ALT-TAB to go back one or so) and then to activate the submit button you would only need to press enter.
What I'm wondering, is if upon arrival at the page you can bypass any mouse click at all, and just use the tab key and enter data for any field (perhaps just 2 out of 10), and then still requiring the enter key to submit the data.
So basically this would eliminate the need to click on any field first to start the data entry mode,
Is this possible? And also, if this is an easy fix, can I choose which field is highlighted first (where the tab key would point to) and perhaps add some coloration highlight to the active field at the time?
Thanks
The form code would start out (in the old manual way) as something like this:
<form action="depts.php" method="POST">
Department number: <input type=text name="num" value="" size="2">
Description: <input type=text name="text" value="" size="20"><br>
Starting Sales: <input type=text name="startr" value="" size="12">
Ending Sales: <input type=text name="endr" value="" size="12">
Purchases: <input type=text name="purch" value="" size="12"><br>
Credits: <input type=text name="credit" value="" size="12">
Book Figure: <input type=text name="book" value="" size="12">
Cost Markup % <input type=text name="factor" value="" size="5">
<input type=submit name="submit" value="submit"><br><br>