How to pass an input value from a small form into a big form? (PHP, Javascript, URLs)
Posted
by sarahdopp
on Stack Overflow
See other posts from Stack Overflow
or by sarahdopp
Published on 2010-04-26T00:24:42Z
Indexed on
2010/04/26
0:33 UTC
Read the original article
Hit count: 605
I have a Wordpress website that needs to display a 3rd party newsletter signup form. This sign-up form has lots of fields and takes up its own full page.
I want to display a simple "enter email address, hit submit" form at the top of every page. When the user hits submit, it should take them to the full form, where their email address is already pre-populated in the appropriate field.
What's a good way to pass the input value from the short form to the long form? I'm inclined to use the URL somehow, but I've never approached it before.
(My skills: expert XHTML/CSS. competent with WP theme hacking. comfortable enough with PHP and Javascript to move things around, but not enough to write them from scratch.)
Thanks!
© Stack Overflow or respective owner