Rev server: going to another .irev page from script
andre at andregarzia.com
Sat Feb 12 09:26:04 EST 2011
on redirect pLocation, pCode
if pCode is empty then put "301" into pCode
put header "Status:" && pCode # <-- Apache needs that, so I've learned
put header "Location:" && pLocation
call it like:
(this snippet is from RevSpark minimal framework,
On Fri, Feb 11, 2011 at 11:46 PM, Sarah Reichelt
<sarah.reichelt at gmail.com> wrote:
> On Sat, Feb 12, 2011 at 7:57 AM, stephen barncard
> <stephenREVOLUTION2 at barncard.com> wrote:
>> I'm sure there's a way to do this but I can't seem to find it.
>> I have a user password script that then is supposed to 'go' to another html
>> page but the only way I can get it to work is to use an intermediate file
>> (gosite.html) which has a cheesy html redirect command : CONTENT="0;URL=
>> I can't figure out what to use to go to another irev page directly.
> You can use "put header" or "put new header" - I use "put new header"
> but I'm not sure if that is strictly necessary.
> Here is a script example:
> The only trick is that this must come before any other data is "put"
> on to the web page.
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://www.andregarzia.com All We Do Is Code.
More information about the Use-livecode