RE: [PHP] adding "Back to Search results" link
| From: | Bastien Koert | Date: | Wed, 15 Aug 2007 21:32:13 +0000 |
| Subject: | RE: [PHP] adding "Back to Search results" link | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-260880@lists.php.net to get a copy of this message | ||
what about hadding the search form elements to the results page and letting the users search right
from there
bastien> To: php-general@lists.php.net> From: dmoon3@depaul.edu> Date: Wed, 15 Aug 2007
bastien> 15:44:46 -0500> Subject: Re: [PHP] adding "Back to Search results" link> > Jim
bastien> and Brad.> > Thanks for the feedback. I was thinking it was something simple like a back >
bastien> button. But the problem that arises when I use this method is on Form 3.> > If I go through
bastien> the steps, and make a change to an item on Form 3. Then use > the <a
bastien> href="javascript:history.go(-2);">Return to search >
bastien> results</a>.....everything works fine.> But if I dont make any changes to Form 3. then this
bastien> takes me all the way > back to the search page.> > People in my group use this form to
bastien> update database information for a number > of items. Once they make changes, they would like to
bastien> go back to the search > results, instead of having to run the same search again and again.>
bastien> > > > > "Jim Lucas" <lists@cmsws.com> wrote in message >
bastien> news:46C361B8.8040604@cmsws.com...> > Derek Moon wrote:>
bastien> >> I am trying to imporve a web application that my group uses.> >>> >>
bastien> Basically there are 3 forms that work together Form 1 > form 2> >>> >> Form 1 -
bastien> searchs for enterend values> >> Form 2 - returns search results, letting you individually
bastien> select any item> >> Form 3 - lets you edit a specific individual item> >>>
bastien> >> I want to make a link on the Form 3 that returns you to form Form 2> >> basically
bastien> a "Back to Search results" link.> >>> >> I'm thinking that there is
bastien> a way to pass the query string, but I am a > >> newbie and I'm not sure that I am
bastien> going about this the right way.> >>> >> Anyone have any advice or knowledge to
bastien> share?> >> > I would personally just use the back button. Isn't that what it is
bastien> there > > for?> >> > But seriously, if you changed the method on Form 1 to use get
bastien> instead of > > post, you could then just have a button that sends you back 1 in your > >
bastien> history, or 2 in this case.> > ...> > ...> >> > Actually wait, it would be
bastien> 3> >> > form 1 -> results -> edit -> save changes ->\> >
bastien> \------------------------------/> >> > hope the format is correct on my ascii art :)>
bastien> >> > nope, now that I read it again, it is only 2 back in the history> >> > So
bastien> something like this for the back button> >> > <a
bastien> href="javascript:history.go(-2);">Return to search results</a>> >> >
bastien> That should do> >> > GUIDE LINES FOR USE OF METHOD in forms> > POST Only use post
bastien> when you are submitting a form> > that will change the data that you are submitting>
bastien> >> > GET Use this for forms that do not change get, but> > only retrieve data.>
bastien> >> >> >> > -- > > Jim Lucas> >> > "Some men are born to
bastien> greatness, some achieve greatness,> > and some have greatness thrust upon them.">
bastien> >> > Twelfth Night, Act II, Scene V> > by William Shakespeare > > -- > PHP
bastien> General Mailing List (http://www.php.net/)> To unsubscribe, visit:
bastien> http://www.php.net/unsub.php>
_________________________________________________________________
Connect to the next generation of MSN Messenger
http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=wlmailtagline