PHP - How do I echo different forms for different selected options

Asked By Olusegun A. on 15-May-12 07:46 PM
Hello there,

Am developing a site where members can add events. On the add_event.php page, the only field is Event Type (which includes Seminar, Wedding, Birthday, etc). The form for Seminar is different from the form for wedding etc. On selecting the type of event they want to add, I want the form for the selected event type to appear below the Event Type field without refreshing or redirecting the page. How do I do it? Can only php scripts do this or i'll need other languages like javascript etc?

Thanks in advance
Robbe Morris replied to Olusegun A. on 15-May-12 09:59 PM
You'll need JavaScript.  Look up XmlHttpRequest.