473,503 Members | 1,952 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

input submit weirdness--help

I have a simple search form inside a table with 2 selects and text and
submit inputs. When entering a string into the text input and hitting return
(without tabbing to and clicking "Submit") the page appears to refresh, but
no results appear. However tabbing to or clicking "Submit" work as expected.

Here's my code:

<tr>
<td align='right' valign='middle'><nobr>Additional Keywords:</nobr></td>
<td align='left' valign='middle' class='formField'>
<input type='text' name='Keyword' value="" class='formField'>
</td>
</tr>
<tr>
<td align='right' valign='middle'>&nbsp;</td>
<td align='left' valign='middle' class='formLabel'>
<input type='submit' name='submit' value='Search'>
</td>
</tr>

Any suggestions are appreciated.
Jul 23 '05 #1
7 2695
"Bosconian" <bo*******@planetx.com> wrote in message
news:Su34d.133077$3l3.4025@attbi_s03...
I have a simple search form inside a table with 2 selects and text and
submit inputs. When entering a string into the text input and hitting
return
(without tabbing to and clicking "Submit") the page appears to refresh,
but
no results appear. However tabbing to or clicking "Submit" work as
expected.


Could you post a URL of the page where this problem appears? It sounds like
you may have nested forms or multiple submit buttons, but I can't be sure
without seeing the complete code.

Chhis Finke

--
I'll send you a gMail invite if you sign up for a free iPod and complete an
offer: http://www.freeiPods.com/default.aspx?referer=9228418
Jul 23 '05 #2
Chris,

Thanks for your reply.

Unfortunately the page is inaccessible to the outside world, but I confirmed
that the page has only one form with only one submit button.

This is quite odd. I have other forms that work as expected. I've been
playing with this for a long while and can't figure it out. It's probably
something obvious, but I appreciate the extra set of eyes.

Here's the full form including the table it's wrapped in:
<table cellpadding='2' cellspacing='2' border='0' width='100%'
class='content'>
<form name='Search' method='post' action='suppliers.php'>
<tr>
<td align='right' valign='top' width='16%' rowspan='5'>
<br>
<img src="img/title-suppliers.gif" alt="Suppliers - Find a Supplier"
width="119" height="37">
</td>
</tr>
<tr>
<td width="25%" align='right' valign='middle'><br>Select a Region:</td>
<td width="59%" align='left' valign='middle' class='formField'><br>
<select name='RegionID' class='formField'>
<option value=''>All Regions</option>
<option value='1'>Coast</option>
<option value='2'>Metro</option>
<option value='3'>Mountain</option>
<option value='4'>Valley</option>
<option value='5'>Southern</option>
<option value='6'>Central</option>
<option value='7'>Eastern</option>
</select>
</td>
</tr>
<tr>
<td align='right' valign='middle'>Select a Supplier:</td>
<td align='left' valign='middle' class='formField'>
<select name='ServiceTypeID' class='formField'>
<option value=''>All Suppliers</option>
<option value='1'>DMO</option>
<option value='2'>Lodging</option>
<option value='3'>Restaurants</option>
<option value='4'>Shopping</option>
<option value='5'>Sightseeing & Attractions</option>
</select>
</td>
</tr>
<tr>
<td align='right' valign='middle'><nobr>Additional Keywords:</nobr></td>
<td align='left' valign='middle' class='formField'>
<input type='text' name='Keyword' value="casino" class='formField'>
</td>
</tr>
<tr>
<td align='right' valign='middle'>&nbsp;</td>
<td align='left' valign='middle' class='formLabel'>
<input type='submit' name='submit' value='Search'>
</td>
</tr>
</form>
</table>

"Christopher Finke" <cf****@gmail.com> wrote in message
news:2r*************@uni-berlin.de...
"Bosconian" <bo*******@planetx.com> wrote in message
news:Su34d.133077$3l3.4025@attbi_s03...
I have a simple search form inside a table with 2 selects and text and
submit inputs. When entering a string into the text input and hitting
return
(without tabbing to and clicking "Submit") the page appears to refresh,
but
no results appear. However tabbing to or clicking "Submit" work as
expected.
Could you post a URL of the page where this problem appears? It sounds

like you may have nested forms or multiple submit buttons, but I can't be sure
without seeing the complete code.

Chhis Finke

--
I'll send you a gMail invite if you sign up for a free iPod and complete an offer: http://www.freeiPods.com/default.aspx?referer=9228418

Jul 23 '05 #3
Bosconian wrote:

Please read: http://www.allmyfaqs.com/faq.pl?How_to_post before responding.
<table cellpadding='2' cellspacing='2' border='0' width='100%'
class='content'>
<form name='Search' method='post' action='suppliers.php'>


This is not a valid construct in HTML. <form> elements can contain entire
tables, or an exist entirely within table data (or heading) cells, but can
not be a child element of a table or a parent element of a table row.

<http://validator.w3.org/>
<http://diveintomark.org/archives/2003/05/05/why_we_wont_help_you>

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Jul 23 '05 #4
On Wed, 22 Sep 2004 03:01:24 +0000, Bosconian wrote:
<form name='Search' method='post' action='suppliers.php'>
[snip /]
<input type='submit' name='submit' value='Search'>


I would check out suppliers.php . I bet it is using the presence of
$_POST['submit'] (or even $submit if register_globals is on) to determine
that the form has been submitted.

I would suggest creating a simple PHP page like this:

<!-- begin info.php -->
<?php php_info(); ?>
<!-- end info.php -->

Now set your form's action to "info.php". After pressing [enter], is
there an entry for $_POST['submit'] ?

HTH,
La'ie Techie

Jul 23 '05 #5
David,

Thanks for your reply.

I moved the <form> tags to the outside of the <table> tags, but
unfortunately that didn't effect the behavior.
"David Dorward" <do*****@yahoo.com> wrote in message
news:ci*******************@news.demon.co.uk...
Bosconian wrote:

Please read: http://www.allmyfaqs.com/faq.pl?How_to_post before responding.
<table cellpadding='2' cellspacing='2' border='0' width='100%'
class='content'>
<form name='Search' method='post' action='suppliers.php'>


This is not a valid construct in HTML. <form> elements can contain entire
tables, or an exist entirely within table data (or heading) cells, but can
not be a child element of a table or a parent element of a table row.

<http://validator.w3.org/>
<http://diveintomark.org/archives/2003/05/05/why_we_wont_help_you>

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is

Jul 23 '05 #6
Ok, I outputted phpinfo as you suggested and $_POST['submit'] is not present
when hitting enter.

I haven't experienced this before. Any ideas why this is happening?

"La?ie Techie" <laie@win_remove_get_nospam_solutions.com> wrote in message
news:1095839940.tlWHrDEHCT1fwb7Tmi0YeA@teranews...
On Wed, 22 Sep 2004 03:01:24 +0000, Bosconian wrote:
<form name='Search' method='post' action='suppliers.php'>


[snip /]
<input type='submit' name='submit' value='Search'>


I would check out suppliers.php . I bet it is using the presence of
$_POST['submit'] (or even $submit if register_globals is on) to determine
that the form has been submitted.

I would suggest creating a simple PHP page like this:

<!-- begin info.php -->
<?php php_info(); ?>
<!-- end info.php -->

Now set your form's action to "info.php". After pressing [enter], is
there an entry for $_POST['submit'] ?

HTH,
La'ie Techie

Jul 23 '05 #7
Bosconian wrote:

Please read: http://www.allmyfaqs.com/faq.pl?How_to_post before responding.
Ok, I outputted phpinfo as you suggested and $_POST['submit'] is not
present when hitting enter.

I haven't experienced this before. Any ideas why this is happening?


The form control with the name "submit" isn't being activated. You are not
pressing Enter while it has the focus, and you are not clicking on it. The
form is being submitted via other means.
--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Jul 23 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
12965
by: Victor A. Cuya | last post by:
Hello all, I have been trying to solve an annoying behavior with PHP (I think). Maybe some of you have encountered the same and have some ideas. I have an html form and I use an <input...
13
13038
by: cookie monster | last post by:
I'm seeing some odd behavior related to CSS and a form, and I'm wondering if anyone has seen this before and whether they might have a solution. I have a small form that is displayed inside a...
6
1638
by: Chiara Bassini | last post by:
Ciao a tutti, qualcuno mi sa dire come faccio ad impostare il padding su un input submit con explore 6? Se faccio: <input type="submit" name="prova" value="Prova d'impostazione padding"...
1
1618
by: Coralsnake | last post by:
Hi group, I would like to experiment with xforms. But the problem is, whatever I do, I don't get a submit button, not in IE en not in FF. Have you've got any idea what could be wrong? Some...
1
1734
by: firenet | last post by:
21 function js_reply_msg(node,g_id,u_id,par_id) 22 { 23 node.innerHTML="<FORM><TEXTAREA name=\"msg_con\"><\/TEXTAREA><br><INPUT type=\"submit\" value=\"reply\"><\/FORM>" 24 ...
5
2812
by: Rabel | last post by:
I am a flash designer so I dont know a whole lot about the javascript submit buttons (I may not even be describing it right sorry) but here is the code I am using. <IMG name="Checkout"...
5
4253
by: Hans Malherbe | last post by:
Is it possible to craft a selector that selects on input type? It would be useful to be able to distinguish between type="text" and type="checkbox".
1
2153
nathj
by: nathj | last post by:
Hi, I really need some help with this as I've been looking at it for over a day now and I'm sure its really simple. The problem is that I have 3 forms each of which posts to thankyou.php. The...
2
2233
by: bilalinamdar | last post by:
hello this is my first post in this forum... I am just a BEGINNER.. Not much Understanding.. I have a website which consist a BOX and a Submit Button I would like to make a custom setting to...
0
7205
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7348
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7006
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5592
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing,...
1
5021
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4685
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3175
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3166
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1519
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.