473,473 Members | 1,563 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

form.submit

My form seems to be getting submitted by the variables do not seem to be
getting posted to my php page. Any idea's why?

<form name="search" id="search" method="post" action="browse.php">
<a href="browse.php?search=exclusive" onclick="submitform()">Bay Escort
Exclusive</a> | <a href="browse.php?search=model"
onclick="submitform()">Models</a> | <a href="browse.php?search=escort"
onclick="submitform()">Escorts</a> | <a href="browse.php?search=inmass"
onclick="submitform()">Incall Massage</a> | <a
href="browse.php?search=outmass" onclick="submitform()">Outcall Massage</a>
| <a href="browse.php?search=dance" onclick="submitform()">Dancers /
Entertainers</a> | <a href="browse.php?search=visitor"
onclick="submitform()">Visiting</a> | <a href="browse.php?search=incall"
onclick="submitform()">Incall</a> | <a
href="browse.php?search=outcall">Outcall</a> | <a
href="browse.php?search=gender" onclick="submitform()">Male Escorts</a><br
/><br /><br />

ADVANCED SEARCH OPTIONS (not yet finished)
<br />
Height between
<select name="feet1">
<option value="2" selected>2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
</select>

<SCRIPT language="JavaScript">
function submitform()
{
document.search.submit();
}
</SCRIPT>

--
Chris Mosser
Jul 23 '05 #1
1 1340

"Chris Mosser" <cmosser_at_comcast_dot_net> ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ
ÓÌÅÄÕÀÝÅÅ: news:WO********************@comcast.com...
My form seems to be getting submitted by the variables do not seem to be
getting posted to my php page. Any idea's why?

<form name="search" id="search" method="post" action="browse.php">
<a href="browse.php?search=exclusive" onclick="submitform()">Bay Escort
Exclusive</a> | <a href="browse.php?search=model"
onclick="submitform()">Models</a> | <a href="browse.php?search=escort"
onclick="submitform()">Escorts</a> | <a href="browse.php?search=inmass"
onclick="submitform()">Incall Massage</a> | <a
href="browse.php?search=outmass" onclick="submitform()">Outcall Massage</a> | <a href="browse.php?search=dance" onclick="submitform()">Dancers /
Entertainers</a> | <a href="browse.php?search=visitor"
onclick="submitform()">Visiting</a> | <a href="browse.php?search=incall"
onclick="submitform()">Incall</a> | <a
href="browse.php?search=outcall">Outcall</a> | <a
href="browse.php?search=gender" onclick="submitform()">Male Escorts</a><br
/><br /><br />

ADVANCED SEARCH OPTIONS (not yet finished)
<br />
Height between
<select name="feet1">
<option value="2" selected>2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
</select>

<SCRIPT language="JavaScript">
function submitform()
{
document.search.submit();
}
</SCRIPT>

--
Chris Mosser


You use POST method in your form, so, when you submit form, only POST
variables are accessible, but not GET like href="browse.php?search=escort".
Anyway, it could be better don't use so many <a> tags in form. IMHO much
better if you rewrite this section as radiobuttons.
Jul 23 '05 #2

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

Similar topics

1
by: monika | last post by:
hi ... I have an asp page which has 3 buttons. <p align="center"><input class="button" type="button" onClick="location='welStudent.asp';" value="Click to write a new story"></p> <p...
2
by: Matt | last post by:
Can form.submit() submit another form? In the following example, in page1.asp, it is fine to submit the current form: form1.submit(), and and I could see the value "Joe" in page2.asp. However, if I...
2
by: Terence Parker | last post by:
How does one go about submitting a form with a link - but submitting it to a new window AND to a page different to that described within the action="" option of the <form> tag? Say, for example,...
4
by: Sarah | last post by:
Hi all. I have a form, and several text and image links on it that should submit the form with different actions. I prepared a simple page with just the code that's not working. PROBLEM:...
15
by: M Smith | last post by:
I have a form I want to submit to itself. I want to be able to type in a list of numbers and submit the form and have that list show up on the same form under the text box I typed them into and...
6
by: CJM | last post by:
Can somebody clarify if/how/when a simple form is submitted when the <Enter> key is pressed? As I understood it, if you have a form with a single submit button, if enter is pressed, the form...
4
by: Stuart Perryman | last post by:
Hi, I have the following code which works just fine in IE6 but not in Firefox. It is an extract of several table rows each with an individual form. It is generated by php. <form...
5
by: rjames.clarke | last post by:
I have the following. $result=mysql_query($sql); $nrows=mysql_num_rows($result); for ($i=0;$i<$nrows;$i++) { $row_array=mysql_fetch_row($result); echo "<form name='testform'...
5
by: Navillus | last post by:
Hey gang, I have a login form that is empty by default, but can be filled with values from a previous form: <input type=text maxlength="40" size="40" name="user" value="`usr`"> <input...
1
by: gbezas | last post by:
Hi All, I have added an event handler to redirect form.submit() to a newSubmit() method that I have defined (which does some additional processing before submitting the form). Additionally I...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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,...
0
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
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
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 project—planning, coding, testing,...
0
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
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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.