by "Calvin" <cctrinh@[EMAIL PROTECTED]
>
Nov 2, 2006 at 08:47 AM
ultrakit wrote:
> Hi,
> I have an insert page where it will update all form fields on the same
> page and when it is done, it will go to another page as I wish.
>
> I get the insert part no problem but what I want to do is when I do the
> <cflocation> I want to pass the record ID (the one I just insert) with
> it. I've tried giving a name (e.g. promoInsert) to the insert query
> and passing my url as <cflocation
> url="confirm.cfm?promoID=#promoInsert.promoID#> but i will receive an
> error.
>
> Any help would be appreciated. Thanks in advance.
If I remember correctly, <cflocation> does not allow you to pass
variable via URL. Instead, you can use <META HTTP-EQUIV=Refresh
CONTENT="1;
URL=http://yourpage.com/confirm.cfm?promoID=#promoInsert.promoID#">
to
redirect to another page and pass along a variable. I have used the
META refresh and I know it works. I hope this will help.
Calvin