473,387 Members | 1,456 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,387 software developers and data experts.

keeping information on a page when you go back

69
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="<?=$HTTP_SERVER_VARS['PHP_SELF']?>" method="post" is within my form tag.
Nov 29 '07 #1
4 1771
numberwhun
3,509 Expert Mod 2GB
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="<?=$HTTP_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
Nov 29 '07 #2
phpmel
69
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!
Nov 29 '07 #3
numberwhun
3,509 Expert Mod 2GB
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
Nov 29 '07 #4
stepterr
157 100+
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]
Nov 29 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

17
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
179
by: SoloCDM | last post by:
How do I keep my entire web page at a fixed width? ********************************************************************* Signed, SoloCDM
0
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...
3
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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...

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.