View Single Post

  #3 (permalink)  
Old 01-20-2004
Damir Mehmedovic
 
Posts: n/a
Default Re: Basic PHP question

Hi Darryl,

you can call the page directly with variables like:
test.php?your_var=1&another_one=testing

or you can eventually use some form:
echo "<form action=\"test.php?your_var=1\" method=\"post or get\">";

instead of \"test.php?your_var=1\", you can try also the $_PHPSELF variable
and use the fields (hidden or normal) from your form..

Lot of fun..

Greetz,
Damir

"Darryl" <darryl@osborne-ind.com> wrote in message
news:97ydnQujtdtr1JDd4p2dnA@news.ruraltel.net...
> Greetings,
> I have a page called test.php. I want to call the same page but pass a
> variable to
> it so that data on the page (retrieved from mysql database ) changes.
>
> So, can I have inside test.php a call to test.php with a variable ?
>
> thanks,
> Darryl
>
>
>
>



Reply With Quote