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 :)

if you URLs are like that in your source code you will need to do something like this:

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

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.