I was wondering if there was an easy way to have a form set up so that when
the submit button is pressed, it goes to a confirmation page that contains a
back button that goes back to the page that called the form.
Basically, I'm looking at a scenario where 10 pages can call the form, but I
want to user to be able to click the back button and be returned to the page
they were on when they click on the link to the form.
I thought that maybe using javascript:hist ory.go(-2) would work, but if the
form is reloaded for any reason, gaing back 2 pages goes back to the form.
--
Posted 'as is'. If there are any spelling and/or grammar mistakes, they
were a direct result of my fingers and brain not being synchronized or my
lack of caffeine.
Mike Brearley 2 2325
Why not make the referring URL part of the form data.
<form name=a onsubmit='docum ent.a.referer.v alue=document.l ocation.href';>
<input type=hidden name=referer>
....
Then on the next page,
<input type=button onclick='locati on.href="<%=req uest.form("refe rer")%>";'>
--
Aaron Bertrand
SQL Server MVP http://www.aspfaq.com/
"Mike Brearley" <mi************ *******@NOSPAMh otmail.com> wrote in message
news:eG******** ******@TK2MSFTN GP09.phx.gbl... I was wondering if there was an easy way to have a form set up so that
when the submit button is pressed, it goes to a confirmation page that contains
a back button that goes back to the page that called the form.
Basically, I'm looking at a scenario where 10 pages can call the form, but
I want to user to be able to click the back button and be returned to the
page they were on when they click on the link to the form.
I thought that maybe using javascript:hist ory.go(-2) would work, but if
the form is reloaded for any reason, gaing back 2 pages goes back to the form.
-- Posted 'as is'. If there are any spelling and/or grammar mistakes, they were a direct result of my fingers and brain not being synchronized or my lack of caffeine.
Mike Brearley
what about calling the form page with something like
'form.asp?refer er=thispage.htm ' Question is, how do I find out what referer
is and use it or what's the correct way of doing this?
--
Posted 'as is'. If there are any spelling and/or grammar mistakes, they
were a direct result of my fingers and brain not being synchronized or my
lack of caffeine.
Mike Brearley
"Aaron Bertrand - MVP" <aa***@TRASHasp faq.com> wrote in message
news:u5******** ******@TK2MSFTN GP10.phx.gbl... Why not make the referring URL part of the form data.
<form name=a onsubmit='docum ent.a.referer.v alue=document.l ocation.href';> <input type=hidden name=referer> ...
Then on the next page,
<input type=button
onclick='locati on.href="<%=req uest.form("refe rer")%>";'> -- Aaron Bertrand SQL Server MVP http://www.aspfaq.com/
"Mike Brearley" <mi************ *******@NOSPAMh otmail.com> wrote in message news:eG******** ******@TK2MSFTN GP09.phx.gbl... I was wondering if there was an easy way to have a form set up so that when the submit button is pressed, it goes to a confirmation page that
contains a back button that goes back to the page that called the form.
Basically, I'm looking at a scenario where 10 pages can call the form,
but I want to user to be able to click the back button and be returned to the page they were on when they click on the link to the form.
I thought that maybe using javascript:hist ory.go(-2) would work, but if the form is reloaded for any reason, gaing back 2 pages goes back to the
form. -- Posted 'as is'. If there are any spelling and/or grammar mistakes, they were a direct result of my fingers and brain not being synchronized or
my lack of caffeine.
Mike Brearley
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Steve Macleod |
last post by:
Hi,
I am using the following code to initialise a session, depending on
whether-or-not the users' log in attempt has been successful.
if ($session_ok == "TRUE") {
//open the session
session_start();
//assign user details to session
$_SESSION = $user_id;
$_SESSION = $user_pass;
|
by: Rich |
last post by:
Am just beginning to use javascript.
I have some pages that can be arrived at from more than one other
page. Yes, the user can use the back button but I'd like to have a
back link at the bottom of the page.
Thought there would be a url in referrer but it seem to be empty.
|
by: TG |
last post by:
Hi, I have a question concerning redirecting users who have logged in
using our login page. Once they have properly filled out the form
they should be redirected back to the last page they were viewing. Is
there a way to do this in ASP.NET/VB.NET?
Thanks
TG
|
by: George |
last post by:
VS.NET 2002\Web\VB
I am trying to get the referring URL for one of my pages using this:
Request.UrlReferrer.ToString
Page 1 has a link to Page 2. I click on the link in Page 1, and go to Page
2. Page 2 is where I am trying to get the referring URL. However, instead of
getting the URL of Page 1 (the referring page), I get the URL of the Page 2
(the current page), instead.
|
by: Tom wilson |
last post by:
I can't believe this is such an impossibility...
I have an asp.net page. It accepts data through on form fields and
includes a submit button. The page loads up and you fill out some
stuff. The submit button posts the page back to the server. The
button code detects an entry error and sends the page back to the
user. This all works.
However, if the user presses the Back button at this point, we go back
and all the form values are...
| |
by: Dan Sikorsky |
last post by:
How can I get the Querystring passed to the Referring Page from its
referrer?
I don't want the querystring coming to my current page. I want the
querystring that came to the referring page, so that I can check for the
existance of a parameter value in that previous querystring.
|
by: Ryan |
last post by:
Greetings,
I would like to know if I can name my main browser window so that I can link
back to it from a pop-up window. I know using <A HREF="url" TARGET="name">
will name the new window being opened, but I want to name the window that I'm
starting out with.
I have a little popup window that I want to have a link in that when clicked
will make the original browser window open up to a new page. I don't care if
the pop-up window...
|
by: Christina |
last post by:
I can't seem to find any reference for grabbing the title of the referring
page, which I want to use for creating a link. i.e.
document.write ("Our thanks to <a href='"+document.referrer+"'>" +referring
page title +"<a>"). I have looked into using location.history also. This is
probably a standard thing, but through all the forums and searches I only
find a mishmosh of things referring to using frames, a different scripting
language, etc....
|
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: 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...
|
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: 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: 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.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |