Hello,
I'm using the ad_returnredirect function and i'm getting weird results coming about
This is the code in my update_page.tcl page
ad_page_contract {
Update page
} {
page_id:notnull
page_link:notnull
}
db_dml update_page { *SQL* }
ad_returnredirect $page_link
ad_script_abort
Here page_link is an external URL, like http://www.google.com
It performs the SQL function properly, but when it comes to the ad_returnredirect page, it simply goes back to the index.adp page
If i used ns_returnredirect instead, it provides me a link to click on to get to the URL, but i want it to go there straight away
Can anyone tell me why it keeps returning to the index page? and Not recognising page_link?
Jas