Hi, I'm trying to add a variable (userid) to the redirect url
I tried
With various versions of redirect url and redirect user events added to the form.
I'm wondering what I'm missing???
Thanx
Mark
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
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
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
I know, but I need the redirect url to be something like
http://myurl.com?id=<?php echo $cf_userid;?>
http://myurl.com?id=<?php echo $cf_userid;?>
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.
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.