473,657 Members | 2,624 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>Addition al Keywords:</nobr></td>
<td align='left' valign='middle' class='formFiel d'>
<input type='text' name='Keyword' value="" class='formFiel d'>
</td>
</tr>
<tr>
<td align='right' valign='middle' >&nbsp;</td>
<td align='left' valign='middle' class='formLabe l'>
<input type='submit' name='submit' value='Search'>
</td>
</tr>

Any suggestions are appreciated.
Jul 23 '05 #1
7 2702
"Bosconian" <bo*******@plan etx.com> wrote in message
news:Su34d.1330 77$3l3.4025@att bi_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='supplie rs.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='formFiel d'><br>
<select name='RegionID' class='formFiel d'>
<option value=''>All Regions</option>
<option value='1'>Coast </option>
<option value='2'>Metro </option>
<option value='3'>Mount ain</option>
<option value='4'>Valle y</option>
<option value='5'>South ern</option>
<option value='6'>Centr al</option>
<option value='7'>Easte rn</option>
</select>
</td>
</tr>
<tr>
<td align='right' valign='middle' >Select a Supplier:</td>
<td align='left' valign='middle' class='formFiel d'>
<select name='ServiceTy peID' class='formFiel d'>
<option value=''>All Suppliers</option>
<option value='1'>DMO</option>
<option value='2'>Lodgi ng</option>
<option value='3'>Resta urants</option>
<option value='4'>Shopp ing</option>
<option value='5'>Sight seeing & Attractions</option>
</select>
</td>
</tr>
<tr>
<td align='right' valign='middle' ><nobr>Addition al Keywords:</nobr></td>
<td align='left' valign='middle' class='formFiel d'>
<input type='text' name='Keyword' value="casino" class='formFiel d'>
</td>
</tr>
<tr>
<td align='right' valign='middle' >&nbsp;</td>
<td align='left' valign='middle' class='formLabe l'>
<input type='submit' name='submit' value='Search'>
</td>
</tr>
</form>
</table>

"Christophe r Finke" <cf****@gmail.c om> wrote in message
news:2r******** *****@uni-berlin.de...
"Bosconian" <bo*******@plan etx.com> wrote in message
news:Su34d.1330 77$3l3.4025@att bi_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='supplie rs.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.or g/>
<http://diveintomark.or g/archives/2003/05/05/why_we_wont_hel p_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='supplie rs.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_global s 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******** ***********@new s.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='supplie rs.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.or g/>
<http://diveintomark.or g/archives/2003/05/05/why_we_wont_hel p_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_remov e_get_nospam_so lutions.com> wrote in message
news:1095839940 .tlWHrDEHCT1fwb 7Tmi0YeA@terane ws...
On Wed, 22 Sep 2004 03:01:24 +0000, Bosconian wrote:
<form name='Search' method='post' action='supplie rs.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_global s 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
12975
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 type="button"> element with the onClick event that calls a javascript funtion. Once the script's content has been processed, I execute the form.submit() directive. I would like to combine the html form and the PHP script into one, and
13
13052
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 table cell. The tags are nested like this: <form><td> ... form elements etc... </td></form> There are no CSS styles applied to the body, table, table row, form,
6
1642
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" style="padding: 2px;" /> funziona correttamente con mozilla ma con explorer no!
1
1630
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 basic code I've tried: <HTML> <HEAD>
1
1748
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 node.nextSibling.nextSibling.innerHTML="" 25 } My thought is that when i clicked a link,the js function generate the Form,then get the input and deal with it.
5
2825
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" value="Checkout" SRC="imagesButtons/ purchaseButton_r2_c2.jpg" onMouseOver="this.src = 'imagesButtons/ purchaseButton_r2_c2_f2.jpg'" onMouseOut="this.src = 'imagesButtons/ purchaseButton_r2_c2.jpg'" onClick="JavaScript:document.forms.submit()">
5
4259
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
2168
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 php then handles the data depending on the value of $_POST. $_POST is set on each of the forms in the following way <!--individual registration --> <div id="register"><input type="submit" name="type" value="Register"></div>
2
2241
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 it... Also would like to separte it in a EXTERNAL CSS.. i already have other codes but want to incorporate this.. Really confused with the CLASS, ID, NAME which one to choose for css.. Kindly provide the code... <div id="thebox" class="style2"> <form...
0
8837
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8739
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8612
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7347
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, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5638
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4171
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4329
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2739
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 we have to send another system
2
1969
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.