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;
Did you know?Explore Trending and Topic pages for more stories like this.
$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

Dynamically set AccordianPane Header
I have an accordian on my master page. I'd like to be able to dynamically change the header on diff

Session login issue
I'm wondering how to fix a problem I'm having with a session-based login system

Say I go to h

Simple program to copy files between two computers over the web
I use logmein free and often need to move files between my two computers. Generally, I move the file

Parse Error with doctype
I'm getting a parse error with this simple code. I don't get it. It worked one time then when I relo

Looking for help reading a .txt or .ini file and outputting the info.
I have a file called Info.ini and It has the following info:
Code: [General]
Online=0
I wou

Why does my php page download images over and over
Can anybody please explain to me why my php page keeps downloading the images and other items every

Connecion issue
Hi,

For some reason, I keep getting this error when trying to connect:

Warning: mysql_

duplicate record notification
In my database, after insertion of records, I want to know if the record inserted is duplicate or no

Display thumbnails as square while retaining aspect ratio
I am trying to figure out a way to make an image display as a square, for example 80x80 pixels, when

Forum tutorial
Im a beginner in PHP. Im making a forum(previous questbook, counter and few others) to learn. For no

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