Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > I am too stupid to make two input boxes work.

Reply
Thread Tools

I am too stupid to make two input boxes work.

 
 
Noname
Guest
Posts: n/a
 
      01-15-2004

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
 
Reply With Quote
 
 
 
 
Steve Pugh
Guest
Posts: n/a
 
      01-15-2004
Noname <(E-Mail Removed)> wrote:

> <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

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <(E-Mail Removed)> <http://steve.pugh.net/>
 
Reply With Quote
 
 
 
 
Jeffrey Silverman
Guest
Posts: n/a
 
      01-16-2004
On Thu, 15 Jan 2004 11:07:40 -0700, Noname wrote:

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


<input type="submit" name="submit" value="Go!">

--
Jeffrey D. Silverman | jeffrey AT jhu DOT edu
Website | http://www.wse.jhu.edu/newtnotes/

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Space between input boxes and selection boxes is not the same in Internet Explorer Stefan Mueller HTML 5 06-16-2009 02:06 PM
Stupid question. Please, only stupid responders. If you're not sureif you're stupid, you probably aren't. =?ISO-8859-1?Q?R=F4g=EAr?= Computer Support 6 07-18-2005 05:11 AM
stupid stupid stupid kpg MCSE 17 11-26-2004 02:59 PM
Re: Is this just too hard for folks here? Or too stupid? Mark Parnell HTML 0 06-23-2003 11:02 PM
Re: Is this just too hard for folks here? Or too stupid? Mike Foster HTML 0 06-23-2003 07:14 PM



Advertisments