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

post to self
Trying to get my form to submit to itself. However I am also trying to use an image for my submit bu

Insert numbers from Barcode scanner into online php page
I have a real big problem, Here is what I'm trying to do. I have a Intermec CN3 handheld computer th

error reporting
hey everyone

I have a production server in which I want error reporting but only on some page

How to get exact 3 moths post date from today date using javascript
How to get exact 3 moths post date from today date using javascript
Please help

WS-Security PL/SQL Forms
Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Prod
PL/SQL Release 10.2.0.2.0 - P

Login Script Issues
I am using a script I got from http://phpsense.com/php/php-login-script.html in order to allow peopl

ScriptResource.axd gives an error on fresh install of ASP.NET Ajax 1.0
Hello,I have a fresh install of Microsoft ASP.NET Ajax 1.0. When I create an Ajax enabled website in

phph within href not showing php if change ? to &
Code: [Select]<a href="<?php echo $puser; ?>?m=<?php=(($m-1)&l

Can I use a loop
Hi buddies!

Once again with my doubts here.

Right now I am using this sql stat

php - xml what is the best way to do this.
IN essence I want to have a script calling the info from the database.. I have no problem thus far,

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