php-general Digest 5 Jun 2005 02:54:48 -0000 Issue 3494
Topics (messages 216370 through 216392):
Re: autocomplete a field
216370 by: Burhan Khalid
ampersands in href's
216371 by: Jack Jackson
216372 by: Rory Browne
216373 by: Jack Jackson
216374 by: Murray . PlanetThoughtful
216375 by: Rory Browne
216376 by: Jack Jackson
216377 by: Marek Kilimajer
216378 by: Jack Jackson
216386 by: Leon Poon
Frames or iframes? (Basically "The devil or deap sea" or "A rock and a hard
place" etc) - - - -> (0T)
216379 by: Ryan A
216380 by: Marek Kilimajer
216381 by: Ryan A
216382 by: Marek Kilimajer
216383 by: Ryan A
216384 by: Murray . PlanetThoughtful
216385 by: Ryan A
216387 by: Mark Cain
216388 by: JamesBenson
216390 by: Marek Kilimajer
url by mail
216389 by: vlad georgescu
Re: dynamic drop down
216391 by: Danny Brow
Re: about PHP Graphic .
216392 by: Richard Lynch
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[email protected]
----------------------------------------------------------------------
--- Begin Message ---
xfedex wrote:
Hi,
Anyone know if theres a way to disable this feature for user using old
browsers or not suporting JS/XML?
Look up <noscript>
--- End Message ---
--- Begin Message ---
Hi,
If I want to make a link to a URL which includes some GETs can I just do:
<a href='{$_SERVER['PHP_SELF']}?p={$p}&c={$s}' ... etc etc
or must I escape the ampersand somehow?
TIA,
--Jack
--- End Message ---
--- Begin Message ---
I think you have the idea. The &'s are used to seperate the various
variables. If you want to set $p to something like 'Tom & Jerry' then
personally I'd do something like:
<?php
$p = "Tom & Jerry";
$s = "Cat & Mouse";
printf("<a href='{$_SERVER['PHP_SELF']}?p=%s&s=%s", urlencode($p),
urlencode($s));
?>
On 6/4/05, Jack Jackson <[EMAIL PROTECTED]> wrote:
> Hi,
>
> If I want to make a link to a URL which includes some GETs can I just do:
>
> <a href='{$_SERVER['PHP_SELF']}?p={$p}&c={$s}' ... etc etc
>
> or must I escape the ampersand somehow?
>
> TIA,
> --Jack
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
Hi, Rory
Rory Browne wrote:
I think you have the idea. The &'s are used to seperate the various
variables. If you want to set $p to something like 'Tom & Jerry' then
personally I'd do something like:
<?php
$p = "Tom & Jerry";
$s = "Cat & Mouse";
printf("<a href='{$_SERVER['PHP_SELF']}?p=%s&s=%s", urlencode($p),
urlencode($s));
?>
That's nice. To get more specific (because my code varies a bit from
yours and I don't wanna mess up the ) and ' and " s:
$p and $c are actually row ID numbers so up to 3 digits. So for example if
$p=1
$c=32
I was wanting to see a URL of
http://foo.com?r=1&c=32
so was this the way to go?
//Make a thumbnail table of contents to display in the left sidebar
while ($sidebar = mysql_fetch_assoc($sidebar_result)) {
$sidebar_thumbnails[] = "<a class='img-link'
href='{$_SERVER['PHP_SELF']}?p=%p&c={$sidebar['art_id']}, urlencode($p)'
title=\"{$sidebar['art_title']}\"><img class='sidebar-img'
src='{$image_dir}{$sidebar['art_thumbnail']}' width='50' height='60'
border='0' alt=\"{$sidebar['art_title']}\" /></a>";
}
?
Thanks in advance!
On 6/4/05, Jack Jackson <[EMAIL PROTECTED]> wrote:
Hi,
If I want to make a link to a URL which includes some GETs can I just do:
<a href='{$_SERVER['PHP_SELF']}?p={$p}&c={$s}' ... etc etc
or must I escape the ampersand somehow?
TIA,
--Jack
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
> If I want to make a link to a URL which includes some GETs can I just do:
>
> <a href='{$_SERVER['PHP_SELF']}?p={$p}&c={$s}' ... etc etc
>
> or must I escape the ampersand somehow?
Depends very much on the document type of your page. Valid XHTML
(transitional, at least), for example, doesn't like single ampersands in <a
href=> links. For XHTML, you need to replace "&"s with "&"s.
So the following link:
<a href='http://www.somewhere.com/index.php?id1=1&id2=2'>Something</a>
...should be changed to:
<a href='http://www.somewhere.com/index.php?id=1&id=2'>Something</a>
Regards,
Murray
--- End Message ---
--- Begin Message ---
On 6/4/05, Jack Jackson <[EMAIL PROTECTED]> wrote:
> Hi, Rory
>
> Rory Browne wrote:
> > I think you have the idea. The &'s are used to seperate the various
> > variables. If you want to set $p to something like 'Tom & Jerry' then
> > personally I'd do something like:
> >
> > <?php
> >
> > $p = "Tom & Jerry";
> > $s = "Cat & Mouse";
> > printf("<a href='{$_SERVER['PHP_SELF']}?p=%s&s=%s", urlencode($p),
> > urlencode($s));
> >
> > ?>
> >
>
> That's nice. To get more specific (because my code varies a bit from
> yours and I don't wanna mess up the ) and ' and " s:
> $p and $c are actually row ID numbers so up to 3 digits. So for example if
>
> $p=1
> $c=32
>
> I was wanting to see a URL of
>
> http://foo.com?r=1&c=32
>
In that case, you can simply echo them out, once you're sure that $r,
and $c are actually integers.
echo "<a href='http://foo.com?r=$r&c=$c'>whatever</a>"
if not(sure they're integers, you could always
printf("<a href=\"http://foo.com?r=%d&c=%d\">whatever</a>", $r, $c);
Alternatively you could $r = (int)$r;
or
echo "<a href='http://foo.com?r=" . (int)$r . "&c=" . (int)$c .
"'>whatever</a>";
There's more than one way to do it.......
> so was this the way to go?
>
>
> //Make a thumbnail table of contents to display in the left sidebar
>
> while ($sidebar = mysql_fetch_assoc($sidebar_result)) {
> $sidebar_thumbnails[] = "<a class='img-link'
> href='{$_SERVER['PHP_SELF']}?p=%p&c={$sidebar['art_id']}, urlencode($p)'
> title=\"{$sidebar['art_title']}\"><img class='sidebar-img'
> src='{$image_dir}{$sidebar['art_thumbnail']}' width='50' height='60'
> border='0' alt=\"{$sidebar['art_title']}\" /></a>";
> }
>
> ?
>
> Thanks in advance!
>
>
> > On 6/4/05, Jack Jackson <[EMAIL PROTECTED]> wrote:
> >
> >>Hi,
> >>
> >>If I want to make a link to a URL which includes some GETs can I just do:
> >>
> >><a href='{$_SERVER['PHP_SELF']}?p={$p}&c={$s}' ... etc etc
> >>
> >>or must I escape the ampersand somehow?
> >>
> >>TIA,
> >>--Jack
> >>
> >>--
> >>PHP General Mailing List (http://www.php.net/)
> >>To unsubscribe, visit: http://www.php.net/unsub.php
> >>
> >>
> >
> >
> >
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
Murray @ PlanetThoughtful wrote:
If I want to make a link to a URL which includes some GETs can I just do:
<a href='{$_SERVER['PHP_SELF']}?p={$p}&c={$s}' ... etc etc
or must I escape the ampersand somehow?
Depends very much on the document type of your page. Valid XHTML
(transitional, at least), for example, doesn't like single ampersands in <a
href=> links. For XHTML, you need to replace "&"s with "&"s.
So the following link:
<a href='http://www.somewhere.com/index.php?id1=1&id2=2'>Something</a>
...should be changed to:
<a href='http://www.somewhere.com/index.php?id=1&id=2'>Something</a>
Thank you Murray. The page is in xhtml 1.0/transitional. That was
precisely what I was worried about. The & will be converted as part
of the URL right? I mean, the printed URL resulting from clicking on
that link won't say & it'll just say & is this correct? Combined
with Rory's post this is really, really useful stuff and I thank you !
--- End Message ---
--- Begin Message ---
Jack Jackson wrote:
Murray @ PlanetThoughtful wrote:
If I want to make a link to a URL which includes some GETs can I just
do:
<a href='{$_SERVER['PHP_SELF']}?p={$p}&c={$s}' ... etc etc
or must I escape the ampersand somehow?
Depends very much on the document type of your page. Valid XHTML
(transitional, at least), for example, doesn't like single ampersands
in <a
href=> links. For XHTML, you need to replace "&"s with "&"s.
So the following link:
<a href='http://www.somewhere.com/index.php?id1=1&id2=2'>Something</a>
...should be changed to:
<a href='http://www.somewhere.com/index.php?id=1&id=2'>Something</a>
Thank you Murray. The page is in xhtml 1.0/transitional. That was
precisely what I was worried about. The & will be converted as part
of the URL right? I mean, the printed URL resulting from clicking on
that link won't say & it'll just say & is this correct? Combined
with Rory's post this is really, really useful stuff and I thank you !
You should use & for all document types, not only xhtml
--- End Message ---
--- Begin Message ---
Rory Browne wrote:
On 6/4/05, Jack Jackson <[EMAIL PROTECTED]> wrote:
Hi, Rory
Rory Browne wrote:
I think you have the idea. The &'s are used to seperate the various
variables. If you want to set $p to something like 'Tom & Jerry' then
personally I'd do something like:
<?php
$p = "Tom & Jerry";
$s = "Cat & Mouse";
printf("<a href='{$_SERVER['PHP_SELF']}?p=%s&s=%s", urlencode($p),
urlencode($s));
?>
That's nice. To get more specific (because my code varies a bit from
yours and I don't wanna mess up the ) and ' and " s:
$p and $c are actually row ID numbers so up to 3 digits. So for example if
$p=1
$c=32
I was wanting to see a URL of
http://foo.com?r=1&c=32
In that case, you can simply echo them out, once you're sure that $r,
and $c are actually integers.
I forgot to mention that above I did $r = intval($_GET[r])
!
Thanks, everyone!
echo "<a href='http://foo.com?r=$r&c=$c'>whatever</a>"
if not(sure they're integers, you could always
printf("<a href=\"http://foo.com?r=%d&c=%d\">whatever</a>", $r, $c);
Alternatively you could $r = (int)$r;
or
echo "<a href='http://foo.com?r=" . (int)$r . "&c=" . (int)$c .
"'>whatever</a>";
There's more than one way to do it.......
so was this the way to go?
//Make a thumbnail table of contents to display in the left sidebar
while ($sidebar = mysql_fetch_assoc($sidebar_result)) {
$sidebar_thumbnails[] = "<a class='img-link'
href='{$_SERVER['PHP_SELF']}?p=%p&c={$sidebar['art_id']}, urlencode($p)'
title=\"{$sidebar['art_title']}\"><img class='sidebar-img'
src='{$image_dir}{$sidebar['art_thumbnail']}' width='50' height='60'
border='0' alt=\"{$sidebar['art_title']}\" /></a>";
}
?
Thanks in advance!
On 6/4/05, Jack Jackson <[EMAIL PROTECTED]> wrote:
Hi,
If I want to make a link to a URL which includes some GETs can I just do:
<a href='{$_SERVER['PHP_SELF']}?p={$p}&c={$s}' ... etc etc
or must I escape the ampersand somehow?
TIA,
--Jack
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
The simplest way to make sure everything work well regardless of what the
values are:
<?
$url = "somepage.php?var1=".urlencode($var1)."&var2=".urlencode($var2);
echo "<a href=\"".htmlspecialchars($url)."\">";
?>
htmlspecialchars() changes characters '&', '"', ''', '<', '>' into the HTML
equivilant. And yup, you should do this for all *ML pages as long as the
thing being printed is not part of the mark-up syntax.
Jack Jackson wrote:>
Rory Browne wrote:
On 6/4/05, Jack Jackson <[EMAIL PROTECTED]> wrote:
Hi, Rory
Rory Browne wrote:
I think you have the idea. The &'s are used to seperate the various
variables. If you want to set $p to something like 'Tom & Jerry' then
personally I'd do something like:
<?php
$p = "Tom & Jerry";
$s = "Cat & Mouse";
printf("<a href='{$_SERVER['PHP_SELF']}?p=%s&s=%s", urlencode($p),
urlencode($s));
?>
That's nice. To get more specific (because my code varies a bit from
yours and I don't wanna mess up the ) and ' and " s:
$p and $c are actually row ID numbers so up to 3 digits. So for example
if
$p=1
$c=32
I was wanting to see a URL of
http://foo.com?r=1&c=32
In that case, you can simply echo them out, once you're sure that $r,
and $c are actually integers.
I forgot to mention that above I did $r = intval($_GET[r])
!
Thanks, everyone!
echo "<a href='http://foo.com?r=$r&c=$c'>whatever</a>"
if not(sure they're integers, you could always
printf("<a href=\"http://foo.com?r=%d&c=%d\">whatever</a>", $r, $c);
Alternatively you could $r = (int)$r;
or echo "<a href='http://foo.com?r=" . (int)$r . "&c=" . (int)$c .
"'>whatever</a>";
There's more than one way to do it.......
so was this the way to go?
//Make a thumbnail table of contents to display in the left sidebar
while ($sidebar = mysql_fetch_assoc($sidebar_result)) {
$sidebar_thumbnails[] = "<a class='img-link'
href='{$_SERVER['PHP_SELF']}?p=%p&c={$sidebar['art_id']}, urlencode($p)'
title=\"{$sidebar['art_title']}\"><img class='sidebar-img'
src='{$image_dir}{$sidebar['art_thumbnail']}' width='50' height='60'
border='0' alt=\"{$sidebar['art_title']}\" /></a>";
}
?
Thanks in advance!
On 6/4/05, Jack Jackson <[EMAIL PROTECTED]> wrote:
Hi,
If I want to make a link to a URL which includes some GETs can I just
do:
<a href='{$_SERVER['PHP_SELF']}?p={$p}&c={$s}' ... etc etc
or must I escape the ampersand somehow?
TIA,
--Jack
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Hey,
The end of the world is at hand....
how do I know this? coz my mom wants her own site!
My mom; the person who hated computers coz "those 'things' are too damn
complicated"!
Anyway, thought I'll do it for her to kind of repay a bit of carrying me for
whole 9 months,
and tough delivery etc etc..dont know if its true coz I cant remember, but
am taking her word
for it...
She wanted a small site with a forum on it, no problem there...I made it for
her using one of the
free forums that members of this list suggested (thanks!) and now she has
around 35 members
so she wants a design to go with it instead of just going directly to the
forum.
Yesterday was her B'day so am doing it now :-p
I had a real good flash header which she too liked, so I modified the header
and she really liked it,
problem is, its around 230kb to load, so I thought I'll put it in a frame
(top frame -> header,
bottom frame-> content and forum) so the flash part won't reload on each
page request.
Since its a forum and she is not doing any advertising its important the
search engines index the site
properly or shes going to have a big forum with no visitors.
Then I read that the search engines dont like frames much....so I was
thinking of using iframes and
then I read about the "evils" of iframes...so I thought I'll ask you guys
for your opinions/suggestions
as I'm dead outa ideas and a bit confused...any alternate ideas too would be
appreciated.
Thanks and have a great weekend.
Cheers,
Ryan
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.323 / Virus Database: 267.6.2 - Release Date: 6/4/2005
--- End Message ---
--- Begin Message ---
Ryan A wrote:
I had a real good flash header which she too liked, so I modified the header
and she really liked it,
problem is, its around 230kb to load, so I thought I'll put it in a frame
(top frame -> header,
bottom frame-> content and forum) so the flash part won't reload on each
page request.
.swf files are not cached by the browsers? Seems they are, so you don't
need to care about frames. Simply output the html needed to load the
flash file each time, the flash will be downloaded only once.
--- End Message ---
--- Begin Message ---
On 6/4/2005 5:30:14 PM, Marek Kilimajer ([EMAIL PROTECTED]) wrote:
> Ryan A wrote:
> >
> > I had a real good flash header which she too liked, so I modified the
> header
> > and she really liked it,
> > problem is, its around 230kb to load, so I thought
> I'll put it in a frame
> > (top frame -> header,
> > bottom frame-> content and forum) so the flash part won't
> reload on each
> > page request.
>
> .swf files are not cached by the browsers? Seems they are, so you don't
> need to care about frames. Simply output the html needed to load the
> flash file each time, the flash will be downloaded only once.
Hey,
Thanks for replying.
Yep, but the animation and the intro music will play each time...which I am
guessing can
be quite irritating.
Cheers,
Ryan
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.323 / Virus Database: 267.6.2 - Release Date: 6/4/2005
--- End Message ---
--- Begin Message ---
Ryan A wrote:
On 6/4/2005 5:30:14 PM, Marek Kilimajer ([EMAIL PROTECTED]) wrote:
Ryan A wrote:
I had a real good flash header which she too liked, so I modified the
header
and she really liked it,
problem is, its around 230kb to load, so I thought
I'll put it in a frame
(top frame -> header,
bottom frame-> content and forum) so the flash part won't
reload on each
page request.
.swf files are not cached by the browsers? Seems they are, so you don't
need to care about frames. Simply output the html needed to load the
flash file each time, the flash will be downloaded only once.
Hey,
Thanks for replying.
Yep, but the animation and the intro music will play each time...which I am
guessing can
be quite irritating.
It's very irritating everytime, even the first time. And it might very
well be the reason why it's also the last time.
--- End Message ---
--- Begin Message ---
Hey,
> >>.swf files are not cached by the browsers? Seems they are, so you
> don't
> >>need to care about frames. Simply output the html needed to load the
> >>flash file each time, the flash will be downloaded only once.
..........
> > Yep, but the animation and the intro music will play each time...which I
am
> > guessing can
> > be quite irritating.
..........
> It's
> very irritating everytime, even the first time. And it might very
> well be the reason why it's also the last time.
:-) its for a womens site....mostly beauty tips, household tips and whatever
else they talk about,
so I dont think they will find it too irritating...the first time, but if it
keeps reloading I'm pretty
sure they will get p!ssed....so back to the main q....frames? iframes?
something else? what?
Thanks,
Ryan
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.323 / Virus Database: 267.6.2 - Release Date: 6/4/2005
--- End Message ---
--- Begin Message ---
> Since its a forum and she is not doing any advertising its important the
> search engines index the site
> properly or shes going to have a big forum with no visitors.
> Then I read that the search engines dont like frames much....so I was
> thinking of using iframes and
> then I read about the "evils" of iframes...so I thought I'll ask you guys
> for your opinions/suggestions
> as I'm dead outa ideas and a bit confused...any alternate ideas too would
> be
> appreciated.
As a compromise solution, you could greet visitors to the forum with a
welcoming 'splash' page that displays your flash animation etc (please,
please put a 'skip intro' link for the sake of repeat visitors) and then
pass to your forum page(s). You could even put a static jpg at the top of
the forum of the final image (ie once all that funky animation has played
out) of your flash file, if you want to carry it over for a consistent look
/ feel.
Regards,
Murray
--- End Message ---
--- Begin Message ---
Hey,
Thanks for replying.
> > Since its a forum and she is not doing any advertising its important the
search engines index the site
> > properly or shes going to have a big forum with no visitors. Then I read
that the search engines dont like
> > frames much....so I was thinking of using iframes and then I read about
the "evils" of iframes...so I thought
> > I'll ask you guys for your opinions/suggestions as I'm dead outa ideas
and a bit confused...any alternate ideas
> > too would be appreciated.
> As a compromise solution, you could greet visitors to the forum with a
> welcoming 'splash' page that displays your flash animation etc (please,
> please put a 'skip intro' link for the sake of repeat visitors) and then
> pass to your forum page(s).
Hehe, not too many people here who like flash eh?
Have a look at the flash file and tell me what you think...it will be on the
top part of the page:
http://a2ztips.com/a2ztips/forum/test/test1.swf
as you can see I cant really make that as an intro file and then skip to the
forum
> You could even put a static jpg at the top of
> the forum of the final image (ie once all that funky animation has played
> out) of your flash file, if you want to carry it over for a consistent
> look / feel.
Thats a good idea, problem is the links for the navigation is on the flash
file
(http://a2ztips.com/a2ztips/forum/test/test1.swf - not yet linked)
And if you are interested, heres the forum:
http://a2ztips.com/a2ztips/forum/
Thanks,
Ryan
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.323 / Virus Database: 267.6.2 - Release Date: 6/4/2005
--- End Message ---
--- Begin Message ---
perhaps you can change the swf to non-play state with a JavaScript on all of
the pages other than the first one.
in the swf OBJECT tag have the following "id" tag:
id="test1"
in the EMBED tag have the following "name" tag:
NAME="test1"
in the body of all pages other than the first
<BODY onload="StopFlashMovie()";>
Somewhere in the HEAD place the following javascript function:
<SCRIPT LANGUAGE="JavaScript">
function getFlashMovieObject() {
if (navigator.appName.indexOf("Microsoft Internet")!=-1) {
return window.test1;
} else {
return window.document.test1;
}
}
function StopFlashMovie()
{
var flashMovie=getFlashMovieObject();
flashMovie.StopPlay();
}
</SCRIPT>
Remember that if you change the name from "test1" to something else, it must
be change everywhere in the functions also.
HTH,
Mark Cain
----- Original Message -----
From: "Ryan A" <[EMAIL PROTECTED]>
To: "php" <[email protected]>
Sent: Saturday, June 04, 2005 11:19 AM
Subject: [PHP] Frames or iframes? (Basically "The devil or deap sea" or "A
rock and a hard place" etc) - - - -> (0T)
> Hey,
> The end of the world is at hand....
> how do I know this? coz my mom wants her own site!
> My mom; the person who hated computers coz "those 'things' are too damn
> complicated"!
>
> Anyway, thought I'll do it for her to kind of repay a bit of carrying me
for
> whole 9 months,
> and tough delivery etc etc..dont know if its true coz I cant remember, but
> am taking her word
> for it...
> She wanted a small site with a forum on it, no problem there...I made it
for
> her using one of the
> free forums that members of this list suggested (thanks!) and now she has
> around 35 members
> so she wants a design to go with it instead of just going directly to the
> forum.
> Yesterday was her B'day so am doing it now :-p
>
> I had a real good flash header which she too liked, so I modified the
header
> and she really liked it,
> problem is, its around 230kb to load, so I thought I'll put it in a frame
> (top frame -> header,
> bottom frame-> content and forum) so the flash part won't reload on each
> page request.
>
> Since its a forum and she is not doing any advertising its important the
> search engines index the site
> properly or shes going to have a big forum with no visitors.
> Then I read that the search engines dont like frames much....so I was
> thinking of using iframes and
> then I read about the "evils" of iframes...so I thought I'll ask you guys
> for your opinions/suggestions
> as I'm dead outa ideas and a bit confused...any alternate ideas too would
be
> appreciated.
>
> Thanks and have a great weekend.
>
> Cheers,
> Ryan
>
>
>
>
> --
> No virus found in this outgoing message.
> Checked by AVG Anti-Virus.
> Version: 7.0.323 / Virus Database: 267.6.2 - Release Date: 6/4/2005
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
You could write a script which uses a cookie to remember which users
have seen the animation or not, I personally wouldnt use frames but
thats just my opinion.
Ryan A wrote:
On 6/4/2005 5:30:14 PM, Marek Kilimajer ([EMAIL PROTECTED]) wrote:
Ryan A wrote:
I had a real good flash header which she too liked, so I modified the
header
and she really liked it,
problem is, its around 230kb to load, so I thought
I'll put it in a frame
(top frame -> header,
bottom frame-> content and forum) so the flash part won't
reload on each
page request.
.swf files are not cached by the browsers? Seems they are, so you don't
need to care about frames. Simply output the html needed to load the
flash file each time, the flash will be downloaded only once.
Hey,
Thanks for replying.
Yep, but the animation and the intro music will play each time...which I am
guessing can
be quite irritating.
Cheers,
Ryan
--- End Message ---
--- Begin Message ---
Ryan A wrote:
Hey,
Thanks for replying.
Since its a forum and she is not doing any advertising its important the
search engines index the site
properly or shes going to have a big forum with no visitors. Then I read
that the search engines dont like
frames much....so I was thinking of using iframes and then I read about
the "evils" of iframes...so I thought
I'll ask you guys for your opinions/suggestions as I'm dead outa ideas
and a bit confused...any alternate ideas
too would be appreciated.
As a compromise solution, you could greet visitors to the forum with a
welcoming 'splash' page that displays your flash animation etc (please,
please put a 'skip intro' link for the sake of repeat visitors) and then
pass to your forum page(s).
Hehe, not too many people here who like flash eh?
Have a look at the flash file and tell me what you think...it will be on the
top part of the page:
http://a2ztips.com/a2ztips/forum/test/test1.swf
as you can see I cant really make that as an intro file and then skip to the
forum
You could even put a static jpg at the top of
the forum of the final image (ie once all that funky animation has played
out) of your flash file, if you want to carry it over for a consistent
look / feel.
Thats a good idea, problem is the links for the navigation is on the flash
file
(http://a2ztips.com/a2ztips/forum/test/test1.swf - not yet linked)
weird, I see only white screen.
certainly, iframe will not help you. iframe is loaded each time together
with the main page, so the flash will play anyway.
--- End Message ---
--- Begin Message ---
how can i send a webpage by mail ?
i'v tryed something like that
$fd = fopen ($url, "r");
$contents = fread($fd, 102400);
print $contents;
fclose ($fd);
mail($adr,$url,$contents);
but the message is blank .... :(
what's the problem ?
--- End Message ---
--- Begin Message ---
On Wed, 2005-06-01 at 11:49 +0100, Mark Rees wrote:
> The dropdown list is on the client (browser). Javascript runs on the
> client. PHP runs on the server.
>
> You have 2 options
>
> - one is to do as Richard says and use javascript to change the contents
> of one select box when an option is selected in another.
> - the other is to refresh the page when the option is selected and write
> different data into the second select box based on the option selected.
> This is a question of using echo and iterating through the data you wish
> to output.
>
>
So how do you refresh the page when the drop down is selected?
Thanks,
Dan.
> -----Original Message-----
> From: Danny Brow [mailto:[EMAIL PROTECTED]
> Sent: 01 June 2005 07:08
> To: PHP-Users
> Subject: Re: [PHP] dynamic drop down
>
>
> On Tue, 2005-05-31 at 22:08 -0700, Richard Lynch wrote:
> > On Tue, May 31, 2005 8:48 pm, Danny Brow said:
> > > Could someone point me to an example with code for dynamic drop
> > > downs in PHP? I would like to be able to have drop downs like
> > > "Select Country" and another drop down show the states/provinces
> > > based on the selected country.
> >
> > Well, the "dynamic" part of it isn't gonna be in PHP at all ; It's
> > gonna be JavaScript.
>
> I thought I'd have to use JS, but was hoping someone knew a way to do it
> with PHP.
>
>
> > You can Google for "JavaScript dynamic menus" to find what you want.
> > Then you just need to use PHP to spew out the JavaScript you want to
> > spew out, but that's no different than spewing out the HTML you want
> > to spew out, really.
>
> Tons on google, thanks,
>
> Dan.
>
> Gamma Global : Suppliers of HPCompaq, IBM, Acer, EPI, APC, Cyclades, D-Link,
> Cisco, Sun Microsystems, 3Com
>
> GAMMA GLOBAL (UK) LTD IS A RECOGNISED 'INVESTOR IN PEOPLE' AND REGISTERED FOR
> ISO 9001:2000 CERTIFICATION
>
> **********************************************************************
>
> CONFIDENTIALITY NOTICE:
>
> This Email is confidential and may also be privileged. If you are not the
> intended recipient, please notify the sender IMMEDIATELY; you should not
> copy the email or use it for any purpose or disclose its contents to any
> other person.
>
> GENERAL STATEMENT:
>
> Any statements made, or intentions expressed in this communication may not
> necessarily reflect the view of Gamma Global (UK) Ltd. Be advised that no
> content
> herein may be held binding upon Gamma Global (UK) Ltd or any associated
> company
> unless confirmed by the issuance of a formal contractual document or
> Purchase Order, subject to our Terms and Conditions available from
> http://www.gammaglobal.com
>
> E&OE
>
> **********************************************************************
> **********************************************************************
>
>
--- End Message ---
--- Begin Message ---
On Sat, June 4, 2005 3:47 am, NeginGostar.com :: Administrator said:
> I want know about PHP Graphic .
> I want use graphic in php but i cant setup GD library , in my server
> My Server is Windows 2003
> and i want install graphic in php
First, make a PHP file with <?php phpninfo();?> in it, and surf to it.
Then, find php.ini in that.
Then, if your php.ini file is not in that location, move it there.
Finally, uncomment the line with php_gd.dll (or similar) in it.
Oh, and re-start Apache to get php.ini re-read.
--
Like Music?
http://l-i-e.com/artists.htm
--- End Message ---