changing text and pictures with php

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
psychotomus
Forum Contributor
Posts: 487
Joined: Fri Jul 11, 2003 1:59 am

changing text and pictures with php

Post by psychotomus »

heres what i want to do, i got a listbox, part of a form. when a user clicks on an item in the listbox, i want to display a picture to the right of it, and text below it. overwriting the picture and text that was there befor the user clicked on a new item.
ChibiGuy
Forum Newbie
Posts: 22
Joined: Fri Jul 11, 2003 11:23 pm
Location: USA
Contact:

Post by ChibiGuy »

I think what you're asking for is Javascript. So I'd suggest posting in a javascript area. :idea:
psychotomus
Forum Contributor
Posts: 487
Joined: Fri Jul 11, 2003 1:59 am

Post by psychotomus »

i know it can be done in javascript, i was wondering if it could be done in php
ChibiGuy
Forum Newbie
Posts: 22
Joined: Fri Jul 11, 2003 11:23 pm
Location: USA
Contact:

Post by ChibiGuy »

I guess so, u can use the onClick=form.submit() in javascript to submit the form and in the php part you can print the image in respect to what the user clicked.


But why would u want to, as Javascript offers a simple solution.
User avatar
patrikG
DevNet Master
Posts: 4235
Joined: Thu Aug 15, 2002 5:53 am
Location: Sussex, UK

Post by patrikG »

i know it can be done in javascript, i was wondering if it could be done in php
Sure it can. You'd have to submit a form for that though.
Post Reply