This topic is locked

Redirecting after adding record

4/28/2009 4:25:33 PM
PHPRunner General questions
N
nitro23456 author

Hi
After adding a record I would like the page to redirect to the list page. I know how to do this simply, but I would like it to redirect and the list page to show the current users records added from the current day only.
I have tried doing this with an URL redirect such as http://www.mysite.com/myproject_list.php?a...&SearchFor=_$_SESSION["UserID"]&SearchOption=Equals&SearchField=RECEIVED+BY&SearchFor=now()_&SearchOption=Contains&SearchField=RECEIVED+ON
It doesnt work. Any ideas?

J
Jane 4/29/2009

Hi,
to search through two fields use advanced search.

To get the URL of advanced search results page check this thread:

http://www.asprunner.com/forums/index.php?showtopic=5704

N
nitro23456 author 4/29/2009

Hi,

to search through two fields use advanced search.

To get the URL of advanced search results page check this thread:

http://www.asprunner.com/forums/index.php?showtopic=5704


I want this to change for whoever is logged in though. So i want to search the "added by" field for the current username and the "added on" field for whatever the current date is...... so the user only sees what they have added on that particularday. I still want them to have access to everyones entries though, so permissions wont solve this.
Using the URL method it has to be static for everyone.

J
Jane 4/30/2009

Hi,
just create dynamic URL and replace static values with variables where current username and date are stored.

N
nitro23456 author 4/30/2009

Hi,

just create dynamic URL and replace static values with variables where current username and date are stored.


Thats what I tried in the first post (see above) but it didnt work. any ideas?

J
Jane 5/4/2009

It's difficult to tell you what's happening without seeing actual files.
Please publish your project on Demo Account and open a ticket at http://support.xlinesoft.com sending a URL to your pages along with instructions on reproducing this error.