pop. form from url
- Started
- Last post
- 10 Responses
- xrusos
anyone know how to auto-populate a form from the url?
i would've figured it be a simple .htm?variable=whatever ... but that doesn't work.
anyone?
- QuincyArcher0
depends upon what you're prepopulating...gimme a little more info.
- xrusos0
let's say i want to pre-populate a "referred by" input box (type=text)... so i want to link to them and auto populate the referral box.
link.htm?referral=us
and have the form auto populate the referral box (id & name = referral)... and value isn't defined.
- cosmo0
if you are using any scripting language that should be quite simple.
- QuincyArcher0
if you can use ASP, i can whip out some code you can use, and send it in an email, with some decent instructions...i don't really have time to support it further though...
- ********0
auto-populate? is that some form of sync-copulation to give birth in bugs?
- xrusos0
so there's no way to do this if you don't have access to the form code?
so i can't auto populate the newstoday search box from a link?
(in this case the newstoday form's "value" attribute is pre-defined... but if it wasn't?)
- cosmo0
r u using anykind of scripting language at all? can write a php script to do that, i think there are javascript which will do that too.
- cosmo0
r u using anykind of scripting language at all? can write a php script to do that, i think there are javascript which will do that too.
- xrusos0
i'm using php on my end... but i don't have control of their end.
they're using php as well. but that shouldn't matter, since i'm trying to do this without changing their code.
- QuincyArcher0
i don't think you're going to have a choice...you have to let them know that they need to update their site to be able to handle the querystrings you're sending over...