ry**@yokoyama.w s wrote in
news:MP******** *************** *@news.corenews .com:
Hello All!
Is it possible to submit a form using hyperlink?
Not in HTML.
I want to send
hidden element when a link is clicked. I read some books, but I found
only using button which I don't want to use.
So you want a hyperlink to submit a form that _only_ has a hidden field?
As in, the user doesn't type anything? They way you do this is with the
URL:
Say you wanted to send the data in two hidden fields:
<input type="hidden" name="blah" value="clam">
<input type="hidden" name="blegh" value="homestar ">
Just drop the hidden fields and put it in a URL like this, making sure to
escape the ampersand with &:
<a href="path/pagename.extens ion?blah=clam&a mp;blegh=homest ar">Linky
Linky</a>
However, if you want to submit a form in which a user enters any sort of
input, then a button is the way to go.
--
In a room with thirty-seven people, never have everybody shake each
other's hand.