Any tutorial about url parameters

Advertisement
hi
i search for any tutorial about url parameters and how to use
it in one page to call every thing just change the url parameter
and every thing on the page changed like the visibility of
something ,,,,,
thanks in advance.
Advertisement

Replay

There are two parts to a URL parameter -
1. Sending it
2. Receiving it
To send it, do this -
<a href="whatever.php?your_parameter=<?php echo
$whatever; ?>">This link
will send the parameter to 'whatever.php'</a>
To receive it, do this -
<?php
$yourVariable =
isset($_GET['your_parameter'])?$_GET['your_parameter']:'';
?>
That parameter's value is now stored in $yourVariable. The
isset part tests
to see if the parameter has been specified at all, and if it
has not, it
sets $yourVariable to '', while if it has, it sets
$yourVariable to the
value of the parameter. It is functionally equivalent to -
<? php
if (isset($_GET['your_parameter'])) {
$yourVariable = $_GET['your_parameter'];
} else {
$yourVariable = '';
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"macnux" <[email protected]> wrote in
message
news:etg5ts$ovj$[email protected]..
> ohhh sorry
>
> about PHP