April 27, 201016 yr Hey I have created a list of, lets say 50 towns and i want to make these links. I have them in a include on page.php and want all the links to go to page-info.php?town=townname Now i know i have to use php echo to display the town in the h1 tag on page.php i.e. plumber in <?php echo(town); ?> But what I can't begin to figure out is how to I define "town" within the list of links...? in asp i simply did this above the list of areas; <% Dim strDestination strDestination = Request.ServerVariables("SCRIPT_NAME") Select Case strDestination Case "/page.asp" scriptname="page-info.asp" End Select %> and added this to the links <a href="<% Response.Write(scriptname) %>?town=townname" and this to a function file town= request("town") can anyone help me convert this into PHP??
April 27, 201016 yr Author funny how 10 mins after i posted this i had several emails from offshore "companies" telling me they provide php, sql, database and other script related services
April 29, 201016 yr just to correct for future readers with the same problem it is $_GET['variable_name']; or $_POST['variable_name']; sorry not being petty just so that someone doesn't break there monitor because &_GET doesn't work
April 29, 201016 yr Author just to correct for future readers with the same problem it is $_GET['variable_name']; or $_POST['variable_name']; sorry not being petty just so that someone doesn't break there monitor because &_GET doesn't work sorry didnt notice i put &_GET....
Create an account or sign in to comment