I have a form on a webpage. When the user enters input into form, and hits Submit, I would like colorbox to pop-up with the results page.
Any ideas on how to go about this?
I’m thinking that I have to convert the form data into a get string, put that on the end of the url to open, and then send that to colorbox. Is that the right way to go about it, or is there an easier way?
Thanks 🙂
To this, I would:
get,post, orajax.divand then usecolorboxon thisdiv.Example:
Modifications you might have to make:
gettopostorajaxdivthat the response gets dumped to (perhaps generate a div with a random ID instead of using a constant,response, as the ID)Also:
This would work, but only if your form works with
get. I wouldn’t recommend usinggetfor forms in general, as this can lead to nasty CSRF and XSS attacks.