Jump to content

Expand Var in a field of a record


HawkCode

Recommended Posts

Hi

 

I need to put in a url like this

 

http://test.com/events/tokenPasser.jsp?email=Rich@RAlbrecht.net&fname=Richard&lname=Albrecht&Member+Number=999999

 

Getting the URL form one table and when expanded gets the data from another table. I created a form to input the url, here is what I put in the field:

 

http://test.com/events/tokenPasser.jsp?email={$row_Recordset['EMail']}&fname={$row_Recordset['FName']}&lname={$row_Recordset['LName']}&Member+Number={$row_Recordset['MemberNumber']}

 

Here is the code

 

$GoToURL = $row_Sysdefaults['HostingURL'];

echo $GoToURL;

 

It does not expand the vars?

 

Is this possible.

 

TIA

 

Rich

Link to comment
Share on other sites

I'm still not getting this to work.

 

I need to direct the user to the web site that gets created by the string stored in the database. The data base has all our webinars and based on the webinars number is will pull a differant url to be built.

 

I'm trying to do this so I don't have to hand modify code for each webinar title. This is the registration system.

 

 

$GoToUrl is set from a Session Var

 

$GoToURL = $_SESSION['GoToURL'];

 

And the session var is set 2 pages earlier like this:

 

$_SESSION['GoToURL'] = $row_Sysdefaults['HostingURL'];

 

 

This is the way the code will be used:

 

 

if ($ResponseCode == "Approved"):{

 

header(sPrintf("Location: %s", $GoToURL  ));

} endif;

 

 

I hope this helps.

 

Rich

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.