At 02:23 6-4-2003, you wrote:
Does anyone know if there is a function in PHP that allows you to
right-click on an item, and from there a drop down menu pops
up and you can go to another screen, preserving that value that was
clicked on?



If there is no function for right-clicking, then is there a way that
when you are selecting something, not on a form, but in a tree,
that you can get the value of what you clicked on into the PHP file?

Thanks

I think you are missing an essential thing about PHP: PHP is being executed on the server. All PHP code you put on a page, is parsed on the server. It arrives at the user without all PHP code but only with the result of it.


That means that if you want to have interaction with the user, you need to create a page that in some way interacts with the user and then will send a request for a next page to the server.
Yor options are, among others:
- put information in a link
- use a form in the page
- use javascript to juggle with information


For right-clicking you need to use javascript.


If you make a tree you could put information in the links that you put in the tree, for example


* <a href="nextpage.php?location=0" >main node</a>
*-- <a href="nextpage.php?location=1" >child1</a>
* -- <a href="nextpage.php?location=11" >grandchild 1 of child 1</a>
*-- <a href="nextpage.php?location=2" >child2</a>
* -- <a href="nextpage.php?location=21" >grandchild 1 of child 2</a>
or whatever way and the in the nextpage.php look at $_GET['location']' value to see what link was used.






--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to