Forum Moderators: open

Message Too Old, No Replies

Can a code in a link fill in a form?

         

JuneauNOWwebbie

12:20 am on Aug 14, 2005 (gmt 0)

10+ Year Member



When my site goes online I would like to include a link to the national website's join-up form that automatically inserts my chapter's code. I guessed something like:

<a href=”https://www.example.org/member.html?chapter window=AK0090”>Join NOW!</a>

to fill in a blank labeled "chapter window" in the source:

<TD colspan="2"><font face="Verdana, Helvetica" size="2"><b><font color="#4A3369">Affiliate with chapter</font></b>:<input NAME="chapternumber" size=6>
See chapter <a href="http://www.example.org/chapters/states.html" TARGET="Chapter Window">list</a>.
If no code is filled in, you will be designated a member-at-large in your state of residence. There is no additional charge for chapter affiliation.</td>
</tr>

I guessed wrong. Does an appropriate code exist?

[edited by: encyclo at 1:17 am (utc) on Aug. 14, 2005]
[edit reason] No URLs please, see forum charter [/edit]

mack

1:32 am on Aug 14, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



If you are passing a variable within the url you can easily extract the value using a script then re-use the value of the variable within the page.

You could then set the form value to $whaever and it will become the default text when the form is loaded.

Mack.

JuneauNOWwebbie

8:52 am on Aug 14, 2005 (gmt 0)

10+ Year Member



Thanks, Mack. :)