Open/Close Links in Php


Posted on 16th Feb 2014 07:03 pm by admin

Hello, Hoping someone can inform me how I can get PHP to automatically open a set of links in a new tabbed window.

Example:
$start= 1;
$var = $start+1;
$end = 5000;
Website to open: www.SOMEWEBSITE.com/randomID= $var

So I would like to be able to set the start VAR and the END Var and then when i click a button, it will automatically open the URLS each with a new randomId on the end, in a new tab.

I have written some code that generats a list of URLS based on my inputs:
Code: $start = 900;
$end = 1000;
for($start; $start < $end; $start++) {
$counter = $start + 1;
echo "<a href=http://www.SOMESITE.com/?id=$counter >Click $counter</a>
";
}
Thanks in advanced!

No comments posted yet

Your Answer:

Login to answer
282 Like 13 Dislike
Previous forums Next forums
Other forums

AutoChoosing a CSS file based on URL
Hey everyone,

I have a site that has multiple URLs and CSS files.

Based on the URL tha

Multithreading design
Hi

I have come up with a Singleton class that manages a pool of database connections. Basical

How to assign JS screen.width to ASP.Net variable
I've got this ASP.net routine that gets the cookie value of the screen width, but now I need to chan

Consuming third party Payment Gateway API from Procedure.
Hi All,

First of all i would like to thank all the people of the oracle forum for providi

Give me all your tricks for minimizing jar file size

Hi, I'm coming close to releasing my J2ME game... I am kicking up against the 64k size barrier w

PHP and SMS
Hi all forum members. I am new here and am unsure what category shoild I post this in.
Moderator

Navigation include for all site directories
Hi,

I need a navigation include that can deal with directories at different levels on a site.

Calling variables
I want to call this to my website but it doesn't display what I want it to,

Code: <h5&

Problem writing URL into database
How would I write this into the database?

<?php echo "http://".$_SERVER['SER

Extracting Long text from message class with parameters
Hi,

I would like to extract the long text from a message class. However, the long text ha

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash