Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

query string help needed....

Featured Replies

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??

  • 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 <_<

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 smile.gif

  • 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 smile.gif

 

 

sorry didnt notice i put &_GET....

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.