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/[email protected]&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
https://forums.phpfreaks.com/topic/96950-expand-var-in-a-field-of-a-record/
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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.