Situation: User submits a form, gets a page returned. User clicks
the "reload button."
Normal result: Browser asks to confirm re-submitting of the form
data.
That's not what I want. What I want is behavior like what Wikipedia
does, as well as vBulletin forums and other nice php-based sites:
Situation: User submits a form, gets a page returned. User clicks
the "reload button."
Desired Result: The current page simply re-loads and the user isn't
asked to confirm re-submission of the form data. The form data
isn't re-submitted.
This may not be a php problem, but I tend to notice this on php
sites because my php site doesn't exhibit this behavior, and I want
it to. How do I accomplish this?
-A 17 5656
On Nov 17, 9:56 pm, a...@spamcop.ne t (axlq) wrote:
Situation: User submits a form, gets a page returned. User clicks
the "reload button."
Normal result: Browser asks to confirm re-submitting of the form
data.
That's not what I want. What I want is behavior like what Wikipedia
does, as well as vBulletin forums and other nice php-based sites:
Situation: User submits a form, gets a page returned. User clicks
the "reload button."
Desired Result: The current page simply re-loads and the user isn't
asked to confirm re-submission of the form data. The form data
isn't re-submitted.
This may not be a php problem, but I tend to notice this on php
sites because my php site doesn't exhibit this behavior, and I want
it to. How do I accomplish this?
-A
This question has been asked and answered many times in this
newsgroup. With a little bit of searching you should be able to find
it.
In article <ae************ *************** *******@e1g2000 hsh.googlegroup s.com>,
ZeldorBlat <ze********@gma il.comwrote:
>On Nov 17, 9:56 pm, a...@spamcop.ne t (axlq) wrote:
>Desired Result: The current page simply re-loads and the user isn't asked to confirm re-submission of the form data. The form data isn't re-submitted.
This question has been asked and answered many times in this newsgroup.
No, not really, as far as I can tell.
>With a little bit of searching you should be able to find it.
Perhaps I am using the wrong terminology in my search. All I find
are articles about form data being lost, not on intentionally losing
it.
-A
On Nov 17, 10:42 pm, a...@spamcop.ne t (axlq) wrote:
In article <ae57203b-6781-4068-b1b6-9317e3549...@e1 g2000hsh.google groups.com>,
ZeldorBlat <zeldorb...@gma il.comwrote:
With a little bit of searching you should be able to find it.
Perhaps I am using the wrong terminology in my search. All I find
are articles about form data being lost, not on intentionally losing
it.
-A
Perhaps "form double post" or "form double submission" would work?
In article <3e************ *************** *******@b36g200 0hsa.googlegrou ps.com>,
ZeldorBlat <ze********@gma il.comwrote:
>On Nov 17, 10:42 pm, a...@spamcop.ne t (axlq) wrote:
>In article <ae57203b-6781-4068-b1b6-9317e3549...@e1 g2000hsh.google groups.com>,
ZeldorBlat <zeldorb...@gma il.comwrote:
>With a little bit of searching you should be able to find it.
Perhaps I am using the wrong terminology in my search. All I find are articles about form data being lost, not on intentionally losing it.
Perhaps "form double post" or "form double submission" would work?
Ah. Yes, thanks.
MY searches only turned up non-useful information (and eventually my
original posting). For searches by others in the future:
Apparently the trick is to separate the form processing URL from the
output URL. That is, have the form on page1.php execute page2.php,
which does processing but no output, and then use header("Locatio n:
page3.php") to redirect to the result page that actually does
output. Then, refreshing page3.php will simply refresh the page
without re-submitting the form on page1.php.
-A
In article <3e8391a8-b8f6-4e92-a6c6- ab**********@b3 6g2000hsa.googl egroups.com>, ze********@gmai l.com says...
On Nov 17, 10:42 pm, a...@spamcop.ne t (axlq) wrote:
In article <ae57203b-6781-4068-b1b6-9317e3549...@e1 g2000hsh.google groups.com>,
ZeldorBlat <zeldorb...@gma il.comwrote:
>With a little bit of searching you should be able to find it.
-A
Perhaps "form double post" or "form double submission" would work?
perhaps if you just answered the damned question instead of being an arse
it would save us all some time.
..oO(axlq)
>Apparently the trick is to separate the form processing URL from the output URL.
No, it can all be done on a single page. After the form processing send
a Location header with the absolute URL of the current page back to the
browser - that's it. The following GET request will replace the previous
POST in the browser history, so a reload won't re-submit the form data.
Micha ge*@alife.com wrote:
In article <3e8391a8-b8f6-4e92-a6c6- ab**********@b3 6g2000hsa.googl egroups.com>, ze********@gmai l.com says...
>On Nov 17, 10:42 pm, a...@spamcop.ne t (axlq) wrote:
>>In article <ae57203b-6781-4068-b1b6-9317e3549...@e1 g2000hsh.google groups.com>,
ZeldorBlat <zeldorb...@gma il.comwrote:
With a little bit of searching you should be able to find it.
>>-A
Perhaps "form double post" or "form double submission" would work?
perhaps if you just answered the damned question instead of being an arse
it would save us all some time.
And maybe he gets tired of answering the same question because you and
others like you are too lazy to search for the answer. Even typing an
asinine post like yours takes more time than searching for the correct
answer.
--
=============== ===
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp. js*******@attgl obal.net
=============== ===
axlq:
Situation: User submits a form, gets a page returned. User clicks
the "reload button."
Desired Result: The current page simply re-loads and the user isn't
asked to confirm re-submission of the form data. The form data
isn't re-submitted.
Without a URL I can't tell, but I have a suspicion you are using the
POST method instead of the GET method. User-agents should make their
users aware if their actions are non-idempotent. http://www.w3.org/2001/tag/doc/whenToUseGet.html
--
Jock
In article <xd************ *************** ***@comcast.com >,
Jerry Stuckle <js*******@attg lobal.netwrote:
>perhaps if you just answered the damned question instead of being an arse it would save us all some time.
And maybe he gets tired of answering the same question because you and others like you are too lazy to search for the answer. Even typing an asinine post like yours takes more time than searching for the correct answer.
I've been on usenet over 20 years. I know enough to search for
an answer before I post, and I also know to expect a few arrogant
replies from the less experienced usenetters who think they have
answered all the questions already. The only reason I posted the
question in the first place was, OBVIOUSLY, that I didn't find
the answer in spite of my searches. The reason was that I wasn't
searching for the proper terms.
-A This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: lsarg |
last post by:
i've been trying forever to figure out a way to use a regular text
link in place of a submit button at the bottom of this. can't get it.
i'm just starting to learn php, so i'm stuck. any help at all would be
amazing.
<?php # Script 12.7 - login.php
// This is the login page for the site.
// Include the configuration file for error management and such.
|
by: David Bradbury |
last post by:
Hi
On my form, as soon as the user clicks my submit button a message pops
up saying "Form processing" as the form submits. This is fine as long
as the user only clicks the submit button once. However, if I try and
stop the user submitting a second time (if they click the button for a
second time despite the form processing message) by using a submission
counter then my form just hangs forever with the "Form processing"
message. Any...
|
by: Hodad |
last post by:
I would like to adapt, as much as possible, the appearance and color red
of the
font in this button:
<P><CENTER><BUTTON VALUE="SUBMIT"><A
HREF="http://www.familytreedna.com/surname_join.asp?code=Q17978"
STYLE="TEXT-DECORATION: NONE;">
<FONT COLOR="RED" FACE="COPPERPLATE GOTHIC BOLD">Right
Here</FONT></A></BUTTON></CENTER></P>
|
by: Werner Partner |
last post by:
On my testpage
http://www.sonoptikon.de/test.php
I have this
<table><tr>
<td valign="top" align="center" style="width:150px;">
<form action=test.php method="get">
|
by: martyn_wynne |
last post by:
Hi,
I have found a odd one, my submit button is not submitting on a
method="get" form after using any form of DataBind?
Has anyone struck this problem before?
here is snipits of the code as an example
<form id="frmUserSearch" method="get" runat="server">
| |
by: Chris |
last post by:
In asp we have "Response.Expires = 0" and I've tried:
HttpResponse.RemoveOutputCacheItem("page location")
But I can't get the page to display new. This is a problem if the data is
changed and the page is revisted. I find it hard to believe that adding a
bogus random value to the url is the only method to avoid this?
If I press the refresh button on my IE6 browser the page displays the
correct data. How is this accomplished?
Thanx.
|
by: dschruth |
last post by:
Hello.
Can anybody solve this problem?
I am using a server-side language (PERL) to *try* to POST data to a
HTTPS login script that doesn't have a standard "submit" button. The
form appears to use javascript to submit the document via the browser's
DOM.
<form action='loginScript.cgi' method="post" name="loginForm">
|
by: Ron |
last post by:
I'm trying to check the value of a checkbox and respond accordingly. I had
one checkbox working then I changed the name and value and it stopped
working. I've checked very carefully to make sure that everything matches -
case, name, etc. and it does.
How do I test what the value of Request.Form("EmailCbx") is after my user
presses submit on the calling page?
|
by: white lightning |
last post by:
How to have <select onchange="this.form.submit()"and also a Submit
button on one form?
I have something like this:
<form action="<?php $_SERVER; ?>" method="post"
enctype="multipart/form-data" name="form1">
<select onchange="this.form.submit();" name="prod">
<option value="">Select product</option>
<option value="12">abc</option>
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
| |
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...
|
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, and deployment—without 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...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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();...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |