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

i have no idea why this isn't working
Code: <?php
session_start();
include("connect.php");

error_reporting(E

When file included, REMOTE_ADDR is server's?
I have an index file that handles my site, basically index.php?page=ip will activate "require('

Time-based image rotation script
I'm trying to write a PHP script that rotates an image based on what time of day it is. I want the

Online Event Ticket Sales
Has anyone wrote a script for online tickets sales?

I have been googling and found lots of th

Can I call a class inside a function?
I have a class written in another file that handles my image resizing.

Can I do this (php say

how to validate date using javascript
I need to validate date in textbox using javascript..
The date is must be not greater than TODAY

unexpected T_SL without a shift left token
Nothing too see here, I'm an idiot and resolved the problem.

PHP referral database. I would like this form to email the referrer.
Okay, Hello I've been trolling for years. This the first time I've ever asked for php help. Normally

Issue Parsing XML into table
Hello all,

Im a bit new to php and new to phpfreaks. But thanks in advance for the help!
<

Any decent php formatter/beautifier/pretty printer?
Any decent php formatter/beautifier/pretty printer class/function?

I found the following whil

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