Jump to content

GET in the URLs


pixzeto

Recommended Posts

Hello! Nice forum :)

I have been "playing" with HTML and CSS for some time, and I have been learning some basic PHP programming lately... I don't have a lot of time for learning though.

I have made a site which uses PHP (see it here: http://niptunz.byethost6.com/sitioy/index.php) for displaying some things, like the main content and some messages on that thin black bar below the banner. I have also installed some PHP utilities, such as CuteNews.

Now, if I add a variable to the URL (is that the right way of referring to it?), let's say: [url=http://niptunz.byethost6.com/sitioy/index.php?flashplayer=no]http://niptunz.byethost6.com/sitioy/index.php?[color=red]flashplayer=no[/color][/url], which displays a message saying "Aviso: no se encontrĂ³...." on the top bar, the links generated by CuteNews show the "flashplayer=no" part ([url=http://niptunz.byethost6.com/sitioy/index.php?subaction=showcomments&id=1153880035&archive=&start_from=&ucat=3&flashplayer=no]http://niptunz.byethost6.com/sitioy/index.php?subaction=showcomments&id=1153880035&archive=&start_from=&ucat=3[color=red]&flashplayer=no[/color][/url]), but the links on the left menu don't (well.... the only link hehehe).

So, if you click a link generated by CuteNews, the message will still be shown in the next page, but if you click a link on the menu, the message disappears.

How do I make the links on the left include the information already present in the URL too ?


Thanks in advance :)
Link to comment
Share on other sites

yes, because when you click the link the flashplayer=no will dissapear, to prevent this, do like so on all the links:
[code]
<?php
if($_GET['flashplayer'] == "no")
$flashplayer = 'no';
else
$flashplayer = 'yes';

?>


<a href=link.php?flashplayer=<? echo $flashplayer; ?>>Link here </a>[/code]
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.