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
Our Studio Blog has Moved
January 3, 2014
Advertisements
Pass dynamic data from a link to a form
August 22, 2013In 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:
http://www.website.co.uk/page?string
$jobreference will be: “string”
HTML Entities for Triangles
July 10, 2013I’m always having to look these codes up – so where better than our own blog? The HTML codes for pointy triangles are:
For HTML Entities
◄ = ◄
► = ►
▼ = ▼
▲ = ▲
Thanks to StackOverflow