...

View Full Version : Hyperlinks generator Help



monicka87
10-22-2009, 06:36 PM
Hi

I need some help to get this done using php:


1 - I have few hyperlinks say 500 in format like:

<a href="http://domaina.com/1.html" target="_blank">http://domaina.com/1.html</a>
<a href="http://domainb.com/1.html" target="_blank">http://domainb.com/1.html</a>
<a href="http://domainc.com/21.html" target="_blank">http://domainc.com/21.html</a>
<a href="http://domaind.com/new.php" target="_blank">http://domaind.com/new.php</a>

etc etc

Now I want to convert them into format like:

<a href="http://domaina.com/1.html" target="_blank">keyword 1</a>
<a href="http://domainb.com/1.html" target="_blank">keyword 2</a>
<a href="http://domainc.com/21.html" target="_blank">keyword 3</a>
<a href="http://domaind.com/new.php" target="_blank">keyword 4</a>


Here keyword 1,2,3,4 can be taken randomly from a file which has huge list of keywords or may be we can paste the hyperlinks and keywords in php form itself and then it just links into the manner as given above.

Can anyone provide the code for doing this?

Thanks

Fumigator
10-22-2009, 06:47 PM
Are you generating the HTML for all of these links using PHP?

monicka87
10-22-2009, 06:49 PM
Yes you are correct

Monicka

monicka87
10-23-2009, 07:56 AM
Thanks.. I am revising my problem and making it more clear and simple now as:

I would need a PHP form page with two form fields:

Form Field A-

In this box we can paste bulk URLS like

http://domaina.com/1.html
http://domainb.com/2.html
http://domaind.com/my.html
http://domaina.com/new.html
etc


Form Field B-

In this box we can paste list of keywords like

keyword 1
keyword 2
keyword 3
keyword 4
keyword 5
etc

Lastly there is "SUBMIT" button and when we click on it then it provides us code on the page itself in the following manner:

<a href="http://domaina.com/1.html">keyword 1</a>
<a href="http://domainb.com/2.html">keyword 2</a>
<a href="http://domaind.com/my.html">keyword 3</a>
<a href="http://domaina.com/new.html">keyword 4</a>
etc

There is no database or external files requird..


I hope its easy to understand now..


If anyone can create this script then I would be very greatful..

Thanks
Monicka

tomws
10-24-2009, 02:40 AM
This isn't a free coding service. Show what you've accomplished and where you're stuck. If you prefer to have someone do your work for you, there's a Web Projects subforum where you post an offer.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum