Skip to content
View in the app

A better way to browse. Learn more.

Thailand News and Discussion Forum | ASEANNOW

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.

Dynamic Content Links

Featured Replies

Hi

I am trying to build a web page where the content is generated dynamically from the link that i link to the page with.

For instance

www.mysite.com/path.php?line1=welcome to my site&line2=holidays in thailand&line3=krabi

OUTPUT

Welcome to my site

holidays in thailand

tours and hotels in krabi

Basically i need to grab certain parts of the link and use them to present content on the page, while having other static items and text on the page.

I would appreciate if someone could suggest some ready made script which can do this, i am not much of a programmer

Thanks

In the file "path.php" add the following:

<?

$line1 = strip_tags($_GET['line1']);

$line2 = strip_tags($_GET['line2']);

$line3 = strip_tags($_GET['line3']);

echo("<p>$line1</p><p>$line2</p><p>tours and hotels in $line3</p>");

?>

That would do exactly what you wanted above. I don't know of any ready made scripts for this, but I'm sure there are a few for domain parking.

  • Author
In the file "path.php" add the following:

<?

$line1 = strip_tags($_GET['line1']);

$line2 = strip_tags($_GET['line2']);

$line3 = strip_tags($_GET['line3']);

echo("<p>$line1</p><p>$line2</p><p>tours and hotels in $line3</p>");

?>

That would do exactly what you wanted above. I don't know of any ready made scripts for this, but I'm sure there are a few for domain parking.

THanks. What i also want to do is this:

www.mysite.com/path.php?line1=welcome to my site&line2=holidays in thailand&line3=krabiline4=krabiwebpage.htm

OUTPUT

Welcome to my site

holidays in thailand

tours and hotels in krabi

Click **here* to see our krabi page

In the above example, the word **here** is linked to www.someothersite/krabiwebpage.htm

So basically i want it to generate a link to another site with the PHP script inserting krabiwebpage.htm string into a link and display that into the page.

Thanks for your help!

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

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.