You are here: Re: url upload script « All PHP « IT news, forums, messages
Re: url upload script

Posted by Steve on 10/14/06 04:31

"Wings" <glenn61@earthlink.net> wrote in message
news:quZXg.6863$Lv3.80@newsread1.news.pas.earthlink.net...
|I thought I had seen one of these before, but long searches have netted me
| nothing. (Not a programmer). If anyone knows the whereabouts of such a
| critter, I'd appreciate directions. I want to upload urls to an html doc
and
| have them put in a format of <A HREF="http://www.blah.blahblah">
|
| Thanks in advance.

interesting terminology...but anyway, here's a basic example in php. have
fun with the text-wrapping;

<?
$urls = array(
'Edit Profile' => 'blah.blah.php' ,
'Help' => 'blah.blah.blah.php' ,
'Log Out' => '?logOut=yes'
);
$urlOutput = "<div style=\"padding-right:2px; position:absolute; top:88px;
width:800px;\">\n";
foreach ($urls as $description => $uri)
{
$style = $description == 'Log Out' ? 'style="float:right;
margin-right:5px;"' : 'style="float:left; margin-left:8px"';
$urlOutput .= " <span " . $style . ">\n";
$urlOutput .= " <a class=\"topMenu\" href=\"" . $uri . "\"><span
class=\"menuItem\" style=\"border:solid 1px white; width:100px;\">" .
$description . "</span></a>\n";
$urlOutput .= " </span>\n";
}
$urlOutput .= "</div style=\"padding-right:2px; position:absolute;
top:88px; width:800px;\">\n";
echo $urlOutput;
?>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация