473,395 Members | 1,977 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Resetting GET query values

Hi all,
I have a POST form that also includes some anchors/links.
If a user clicks a link, that link remains set so that pressing the submit
button later not only sends the appropriate POST value, but also passes the
previous link value.
What I would dearly love to do is remove the query string after dealing with
the passed value so that it isn't pased again when the submit button is
susequently pressed.
Would form.reset() be the right way to go here?
I'd be very gratefull for a solution to this.
TIA,
Vince
Oct 7 '08 #1
2 1677
On Tue, 7 Oct 2008 19:12:35 +1000, "Vince Morgan" <vinharAtHereoptusnet.com.auwrote:
>Hi all,
I have a POST form that also includes some anchors/links.
If a user clicks a link, that link remains set so that pressing the submit
button later not only sends the appropriate POST value, but also passes the
previous link value.
What I would dearly love to do is remove the query string after dealing with
the passed value so that it isn't pased again when the submit button is
susequently pressed.
Would form.reset() be the right way to go here?
Would that be server-side? Like: print "Status: 205 Reset Content\n" ?

According the RFC <mumbleit resets the form that submitted to the
server, but I've only used this for GET, not POST. Confusing me is
you have GET in subject line and POST in text?

Grant.
--
http://bugsplatter.id.au/
Oct 7 '08 #2

"Grant" <g_********@dodo.com.auwrote in message
news:k6********************************@4ax.com...
On Tue, 7 Oct 2008 19:12:35 +1000, "Vince Morgan"
<vinharAtHereoptusnet.com.auwrote:
>
Hi all,
I have a POST form that also includes some anchors/links.
If a user clicks a link, that link remains set so that pressing the
submit
button later not only sends the appropriate POST value, but also passes
the
previous link value.
What I would dearly love to do is remove the query string after dealing
with
the passed value so that it isn't pased again when the submit button is
susequently pressed.
Would form.reset() be the right way to go here?

Would that be server-side? Like: print "Status: 205 Reset Content\n" ?

According the RFC <mumbleit resets the form that submitted to the
server, but I've only used this for GET, not POST. Confusing me is
you have GET in subject line and POST in text?
Yes, that could be a bit confusing. The GET var is being set via links
within the POST form.
If I've got this right the client is sending the GET query string on [every]
form submision once a link has been clicked any time previously. The forms
method is POST, but it also contains about 30 <alinks.
I need to prevent the GET query string being sent again for every subsequent
form submission.
I'll try your method and see how it goes.
Thanks,
Vince
Oct 8 '08 #3

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

Similar topics

4
by: Job Lot | last post by:
On form load my datagrid gets populated with values from database table. How can I reset values in my DataGrid to 0 on click of a button? thanks
0
by: Issam | last post by:
When I reset a monitoring switch using a command such as follows: reset monitor all I note that the monitoring switch, which can be accessed as follows, works as expected (values are reset to...
5
by: Ant | last post by:
Hi, (Winform VS2003) I have a combo box bound to a typed data set. When the form loads, the combo box is popluated using a method containing the simple code below: ------------------------...
4
by: Ian Davies | last post by:
Hello I am struggling for a solution to clear some fields on my webpage that takes their values from some sessions My solution below works when the button is clicked twice. I sort of know why I...
7
by: KoliPoki | last post by:
Hello every body. I have a small issue. Problem: I have a table with 4 descriptor columns (type). I need to formulate a query to retrieve a count for each type so I can group by...etc. The...
0
by: phlype.johnson | last post by:
I'm struggling to find the best query from performance point of view and readability for a normalized DB design. To illustrate better my question on whether normalized designs lead to more complex...
11
by: funky | last post by:
hello, I've got a big problem ad i'm not able to resolve it. We have a server running oracle 10g version 10.1.0. We usually use access as front end and connect database tables for data extraction....
2
by: Pankaj Upmanyu | last post by:
Hi, I need to know how to reset values in 40 textboxes in one go. Mind I am using 8 arrays of text boxes. Please help how to validate them for a rage of values. I am a new learner. Thanks Pankaj
3
by: geraldjr30 | last post by:
hi, i managed to reset the $_GET to $_POST passed from previous page, but for some reason when i type in a in the form it resets back to all. i do not want this to happen... can someone look...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...
0
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...
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,...

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.