1 form. dynamic text from drop down boxes

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
abhic
Forum Newbie
Posts: 10
Joined: Sat Sep 27, 2003 3:56 pm

1 form. dynamic text from drop down boxes

Post by abhic »

Hello,
I need to script a small page which will have two main issues. I want to have drop down boxes on one side and based on the choices made in the boxes, respective text becomes visible on the other side. In the text that becomes visible, I need to be able to enter additional bits of text in certain blanks. At the end of all this, I can click submit or any generic button which will show me a cleaner view of the composed text.
Thank you all.
Regards.
jonemo
Forum Commoner
Posts: 28
Joined: Wed Feb 09, 2005 1:32 pm
Location: london, uk

Post by jonemo »

And what is your question now? Basically that is just two scripts, if you want to and can use JavaScript, its even just one.
abhic
Forum Newbie
Posts: 10
Joined: Sat Sep 27, 2003 3:56 pm

Post by abhic »

Hello,
Sorry I guess. I need help with this. i have no idea how to code this.
Thanks.
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

...

Post by s.dot »

are you expecting someone to code it for you, or you just need to know the logic?
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

...

Post by s.dot »

I don't know if this is the most logical way of doing it but you could do this

Have your dropdown boxes on the left side, have it so when you click them, it sends the value of that form to a separate script on your server, with the target of target="rightside"

Then on the right site have an iframe with the name of "rightside" (so your dropdown box selection is sent here) and have the source be rightside.php ... or some script that acts on the value you had sent to it.
abhic
Forum Newbie
Posts: 10
Joined: Sat Sep 27, 2003 3:56 pm

Post by abhic »

Hi Scot,
That's what i was thinking.
Post Reply