The Tinstar Graphic Design and Studio Blog has moved – we’ve brought it back under the wing of our main website. Come by any time.
Archive for the ‘PHP and MySQL’ Category
In WordPress, use the following to extract a string from a URL:
$jobreference = $_SERVER['QUERY_STRING'];
So from a previous page you can add a dynamic string to a link. When it leads to a contact form, the unique string can be extracted and echoed into a form field. For example, from:
$jobreference will be: “string”