I am too stupid to make two input boxes work.

N

Noname

The following code:

<HTML>
<FORM NAME="additem" METHOD="get" ACTION="addtestentry.php">
<INPUT TYPE="text" SIZE="10" NAME="testdate">
</FORM>
<HTML>

calls up the php page like I want it to. But when I add another
input box like so:

<HTML>
<FORM NAME="additem" METHOD="get" ACTION="addtestentry.php">
<INPUT TYPE="text" SIZE="10" NAME="testdate">
<INPUT TYPE="text" SIZE="10" NAME="testdate2">
</FORM>
<HTML>

No matter which text box has the focus, nothing happens when I hit
Enter.

I have stripped all the code except what you see above to try
to isolate the problem... still the first example works and the
second one does not.

What am I doing wrong?


Thanks
 
S

Steve Pugh

Noname said:
<FORM NAME="additem" METHOD="get" ACTION="addtestentry.php">
<INPUT TYPE="text" SIZE="10" NAME="testdate">
</FORM>

calls up the php page like I want it to. But when I add another
input box like so:

<FORM NAME="additem" METHOD="get" ACTION="addtestentry.php">
<INPUT TYPE="text" SIZE="10" NAME="testdate">
<INPUT TYPE="text" SIZE="10" NAME="testdate2">
</FORM>

No matter which text box has the focus, nothing happens when I hit
Enter.

That's normal. Most browsers only submit the form upon hitting Enter
if there is zero or one text input. You need a submit button.

Steve
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top