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

Why doesn't this work? (SSH2)
This is my script:

Code: <?php
$connection = ssh2_connect('213.251.167.109', 22);

Calculating a rating by adding number of points and dividing by number of items
I have a site that users can post links to files to download. They can rate these files on a 1-5 sca

strtotime issue
Hey all,

I'm playing around with some code, and basically the idea is:

Person changes

Better Method of a Member Cloud
I assume most people know how tag clouds work, where the tags most used are bigger and the least use

PHP5 - Verifying a secure mail is secure
I need to send an e-mail from a form to a external department and because it contains personal custo

Calander layout
Hi i know this sounds like a simple question but i cant find the answer to it anywhere i have added

need help in php variable
i have a php variable on one page
Code: [Select]$lastId = mysql_insert_id($db);
echo $lastId;<

Validation
Hello

I know this is a really vag question.

I need to have a input field on a form th

Selecting an "empty" date formated field
How do you select an "empty" date field? I've tried the few ways I can think.
SQL> select

extending tidy
I have problem with type-hinting and extending tidy. This code creates error:
Code: class cMyTidy

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