[PHP] passing variable question

2002-11-11 Thread Ron Clark
Hello all, I have a php script that reads all the files in a directory (pictures), the outputs each picture as a link to be displayed in the main frame of the html page. All of that works fine. I want to be able to pretty up the picture out put by placing the picture into a html table so it is

Re: [PHP] passing variable question

2002-11-11 Thread Marco Tabini
You just need to add a question mark, the name of the variable, an equal sign and its value (properly encoded): echo 'a href=myurl?myvalue=' . urlencode ($value) . ''; In the receiving script, you can read the value using $_GET['myvalue']; Hope this helps! Marco -- php|architect

Re: [PHP] passing variable question

2002-11-11 Thread John Nichel
Pass if via the URL a href=yourlink.php?picture_data=whateverLink/a On the display page, access the data you passed by... $_GET['picture_data'] Do a google search for get query. Ron Clark wrote: Hello all, I have a php script that reads all the files in a directory (pictures), the outputs