Hello,
I am using an open source PHP ticket system to try to introduce in my company as a way for people to contact me about my service/products.
What I want to do is since I have multiple domains, I want to install the system on one domain and point everything else to it so it all goes to one place.
The only thing I need to change is to add a URL of what domain the customer came from.
Now I have to change this in 2 places.
1) Upon creating a new ticket
2) When one of my staff views the ticket it will tell them where the ticket came from.
Now I did ask for help at their forums and somebody did try to help me but I'm not sure how to use their code or I'm using it wrong 😕
His response was:
The first thing you'll need to do is get the URL of the referring page.
<?php
$ref = getenv("HTTP_REFERER");
?>
Then you could drop that into the value of a hidden input.
<input type="hidden" name="referrer" value="<?=$ref?>" />
Later on, when you need the URL,
<?=$HTTP_POST_VARS["referrer"]?>
I think I'm getting stuck at that last part with HTTP_POST_VARS... How do I use that so it shows the URL into a text box?
Thank you for any help!