Hi Guys,
I have a form that has input fields.
when the user presses submit a next page opens up to display whatever msgs need to be displayed. If the msg is an error and the go back by pressing the back arrow button on the browser menu, all the info that they entered previosly is lost. Can someone tell me a way to work around that. Or even display the message on the same page so that they wouldnt have to go back in the first place.
action="<?=$HTT P_SERVER_VARS['PHP_SELF']?>" method="post" is within my form tag.
4 1785 numberwhun 3,509
Recognized Expert Moderator Specialist
Hi Guys,
I have a form that has input fields.
when the user presses submit a next page opens up to display whatever msgs need to be displayed. If the msg is an error and the go back by pressing the back arrow button on the browser menu, all the info that they entered previosly is lost. Can someone tell me a way to work around that. Or even display the message on the same page so that they wouldnt have to go back in the first place.
action="<?=$HTT P_SERVER_VARS['PHP_SELF']?>" method="post" is within my form tag.
Well, I assume that the page that is being submitted has all of its entries validated and that is where the error is coming from. I don't know PHP, but you can have it reload the last page again with the values that were submitted to it, in the case of an error, and then highlight the entries needing correcting in something like red font color.
Just an idea.
Regards,
Jeff
Does anyone know how to reload the last page again with the values that were submitted to it?
Yup that is what i am trying to do but i not sure how to do it!
numberwhun 3,509
Recognized Expert Moderator Specialist
Does anyone know how to reload the last page again with the values that were submitted to it?
Yup that is what i am trying to do but i not sure how to do it!
Since you are using PHP and this is the HTML/CSS forum, I will move your thread over to the PHP forum to get it answered.
Regards,
Jeff
Without seeing exactly how your code is currently setup you may be able to try editing your input values on your form to something like what I have posted below. Of course you will need to change "coName" in both places to whatever your field names are called.
[PHP]<input name="coName" value="<?php echo $_POST['coName']?>" size=30 maxlength=100 tabindex="1">[/PHP]
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Peter Foti |
last post by:
If I have a page located at:
http://www.mysite.com/mypage.asp
And I want to move this to:
http://www.mysite.com/mypage/
Which is actually:
http://www.mysite.com/mypage/index.asp
|
by: SoloCDM |
last post by:
How do I keep my entire web page at a fixed width?
*********************************************************************
Signed,
SoloCDM
|
by: Dave Alvarado |
last post by:
I'm working on some code that gathers data from a web interface to one of our
servers (classic ASP). The problem is that the site uses session variables
to store login information, so to move from page to page I need to emulate a
browser keeping a session active.
I'm currently using the .Net code below to access each web page. If I get
back an ASPSESSIONID cookie, I store it in a Cookie object, and keep passing
that object back every...
|
by: Tim |
last post by:
Hello All,
Hope someone can point me in the right direction here.
I have a ASPX page that is being created dynamically. My function adds
Labels and Text Boxes to a Table ready for the user to fill them in.
Once the user has entered their information I need to be able to store it
all in a database. The only problem I have is that by using a Web Button
all the dynamically created controls disapear beacuse of the postback. My
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
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: 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: 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...
| |