Date: 05/31/01
- Next message: Roy Huggins: "[phplib] PHP and recursion"
- Previous message: Maxim Derkachev: "Re[3]: [phplib] Session IV"
- In reply to: Stephen Woodbridge: "Re: [phplib] [for Menu Bar] creation of GIF image buttons in PHP - won't accept more than one word"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Greetings Stephen Woodbridge,
Thank you for your advice, the change of the code
to what you suggested below caused the buttons to
have the extra words and is great,
I have one further question, you likely know the answer to.
the URL is showing up as only the first of the string of 5 items.
can you tell me what I need to put in to make each link
follow the the label array ?
have tried for some time now and can't get it, my book does not
give me the example of how to use urlencode to show the links
for each of the array labels.
Thanks a million for your help,
Gerald Howse
*****************
On Tuesday 29 May 2001 09:20, Stephen Woodbridge wrote:
> Gerald,
>
> Try changing:
> > print("?ButtonLabel=$label[$index]");
> to:
>
> print("?ButtonLabel=" . urlencode($label[$index]));
>
> -Steve
THIS WORKED GREAT .............
**************
<? //start HTML page
print("<HTML>\n");
print("<HEAD>\n");
print("<TITLE></TITLE>\n");
print("</HEAD>\n");
print("<BODY>\n");
$label = array("About Us", "Water Fun", "Amusement Fun", "Specials",
"Contact Us");
for($index = 0; $index < count($label); $index++) {
print(("<A HREF=\"http://foo.com/aboutus.html\">"), ("<A
HREF=\"http://foo.com/waterfun.html\">"),
("<A HREF=\"http://foo.com/special_offers.html\">"), ("<A
HREF=\"http://foo.com/amusement_fun.html\">"),
("<A HREF=\"http://foo.com/contact_us.html\">"));
print("<IMG SRC=\"17-1.php");
print("?ButtonLabel=".urlencode($label[$index]));
print("&ButtonWidth=145");
print("&ButtonHeight=25");
print("\" BORDER=\"0\">");
print("</A><BR>\n"); } //close page
print("<center><IMG
SRC=\"http://foo.com/tap250x374.gif\"></center>");
print("</BODY>\n");
print("</HTML>\n");
?>
---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>
- Next message: Roy Huggins: "[phplib] PHP and recursion"
- Previous message: Maxim Derkachev: "Re[3]: [phplib] Session IV"
- In reply to: Stephen Woodbridge: "Re: [phplib] [for Menu Bar] creation of GIF image buttons in PHP - won't accept more than one word"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

