Having trouble with links on PHP site! Any help would be great!

Reply

Join Date: Jun 2004
Posts: 1
Reputation: possumfire is an unknown quantity at this point 
Solved Threads: 0
possumfire possumfire is offline Offline
Newbie Poster

Having trouble with links on PHP site! Any help would be great!

 
0
  #1
Jun 2nd, 2004
Hi,

On my website, I have links to different pages like the following:

[site_url]/email_req.php?email=[email]&ps=[ps]&refid=[refid]

But, it is not inserting the correct things such as referral id, site url and the others too. It just stays like that.

Any help would be great!

Thanks!
Matt
Reply With Quote Quick reply to this message  
Join Date: Mar 2004
Posts: 94
Reputation: Ragnarok is an unknown quantity at this point 
Solved Threads: 0
Ragnarok Ragnarok is offline Offline
Junior Poster in Training

Re: Having trouble with links on PHP site! Any help would be great!

 
0
  #2
Jun 2nd, 2004
if you URLs are like that in your source code you will need to do something like this:

[php]<?php
$url = preg_replace("#[(.+?)]#i","$urlbits['\\1']",$url)
?>[/php]

All you need to do the is create an array (for example $urlbits) and place all the replaces in for example [site_url] would be $urlbits['siteurl']
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC