PHP- dynamic form action

hi guys.

i want to be able to redirect my form to a page, based on the input provided by the user.

eg. On my form, i ask the user whether he likes ice-creams or chocolates.
Suppose he says ice-creams. I then direct him to a page showing the flavours of ice creams i have. If, instead, he says that he likes chocolates, i direct him to a page showing the chocolate varieties i have.

how can i code this using HTML/PHP.

I know it can be done using javascript, but then, is javascript the only option??

is it not possible usning only HTML/PHP??

please somebody provide the javascript code for the same, in case you feel that javascript is the only option availale.

thanks a ton.


You are reading an archived discussion.

Related Posts

Hi Engineers, How R u? Let us rock. Thank u
To the Informed, I would like to use the 555 timer output to control a high voltage DC with a IGBT. Please make this as simple as possible. Thanks, Timothy
My circuit is set up perfect so i get the pulse from pin 3 on the 555, im running that to a gate of a mosfet but am having a...
i want to know about the mini projects which is useful for the society
hello i'm sugaan.studying information technology.i'm glad to meet u all through ce. thankou CE.