Forums

add userid to redirect url

marklandry 10 Nov, 2011
Hi, I'm trying to add a variable (userid) to the redirect url
I tried

<?php
$some_value = 62;
$myForm->formrow->redirecturl .= '&id='.$some_value;
?>

With various versions of redirect url and redirect user events added to the form.
I'm wondering what I'm missing???

Thanx

Mark
GreyHead 10 Nov, 2011
Hi Mark,

That looks like CFv3 code. If you are using CFv4 it won't work; and if you have a ReDirect URL action then you can put id=62 in there.

Bob
GreyHead 24 Nov, 2011
Hi Mark,

You can add the User Id to the form data and then use id={user_id} (or something similar).

Bob

PS I have published a Load User info [GH] action that adds all the user info to the form data.
This topic is locked and no more replies can be posted.

VPS & Email Hosting 20% discount

{item:title} {images:#}