Click to See Complete Forum and Search --> : Can PHP do this?


bombpop
11-24-2003, 05:21 PM
I'm not a web developer, but I have made some simple pages using PHP and CGI.pm with mysql so I do have a little experience. I want to make another simple page with some features that I do not know how to implement. I once saw a page that had a form to fill out, and when you clicked on a checkbox or radio dial another area would immediately popup for you to fill out more info. If you unchecked the item, the area would disappear. Another thing I would like to be able to do is add a "Details" button so that I could click on it and the info would immediately be displayed, and once you click it again the info would disappear. I'm not sure how to really describe it. The page doesn't reload and its not some transition that I have seen on some pages. It just shows the info immediately. Example below

Chris [Details]
Brian [Details]
Joe [Details]

Once [Details] for Brian is clicked it would change to:

Chris [Details]
Brian [Details]
352 Maple Street
Boomtown, FL 35525
Joe [Details]

Then when you clicked [Details] for Brian it would change back to:

Chris [Details]
Brian [Details]
Joe [Details]

Could I do this with PHP? If not, can you direct me to a language that can do this? Thanks.

pyro
11-24-2003, 05:29 PM
PHP runs server-side, so for it to make any changes, you will have to send a request to the server. It sounds like you are looking for JavaScript - try posting in that section.

Sux0rZh@jc0rz
11-24-2003, 06:25 PM
he could do it with php couldnt he? like.. have an <? include_once("briandetails.php"); ?> and have visible set to false.. then have an if statement that says if radiobutton "braindetails" is clicked, then to change briandetails.php include from visible false to visible true...?

pyro
11-24-2003, 08:16 PM
What you are describing sounds like JavaScript to me... ;) :D