Donate SIGN UP

HTML Links

Avatar Image
tpreece01 | 09:08 Wed 08th Jul 2009 | Internet
4 Answers
I want to link to a webpage containing a simple form.

The form has a series of four radio buttons and I want to include one of them in the link to be automatically checked when the page loads. Is this possible and how?
Gravatar

Answers

1 to 4 of 4rss feed

Best Answer

No best answer has yet been selected by tpreece01. Once a best answer has been selected, it will be shown here.

For more on marking an answer as the "Best Answer", please visit our FAQ.
Hi,

I've found the best resource for Web Development is at W3Schools. Hope this helps.
Here is their answer to your question:

<form action="">
Male:
<input type="radio" checked="checked"
name="Sex" value="male">


Female:
<input type="radio"
name="Sex" value="female">
</form>
Question Author
Thanks Haggisdj, it's not quite what I wanted.

If you go directly to the web page, non of the buttons are pre-checked, which is as it should be.

What I want to do is create a link from another page (or to put into an email) that will check one of the buttons on loading.

Although I'm not sure it is actually possible in simple terms and don't want to start adding any more complex scripting.
Hmmm... I have a feeling that it can be done using get or post and javascript but I'd have to think about it.

I'll try later for you.

1 to 4 of 4rss feed

Do you know the answer?

HTML Links

Answer Question >>