Re: HREFs that can't be
| From: | Robert Vetter | Date: | Fri, 02 Mar 2001 15:52:59 +0000 |
| Subject: | Re: HREFs that can't be | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-42352@lists.php.net to get a copy of this message | ||
"Boget, Chris" wrote:
>
> > > That won't work. Clicking on a link does not trigger
> > > sending of fields (hidden or not).
> > No? How about:
> > <form name=myForm method=post action=...>
> > <input bla bla bla...>
> > </form>
> > <a href="javascript:document.myForm.submit();">Click here</a>
> > <a href="#" onclick="document.myForm.submit();return
> > false;">or here</a>
>
> This would require a form for every link and that was something I
> illustrated earlier as one of the possibilities I had come up with. But
> it was a possibility that I was trying to avoid...
>
> Chris
No, you could do following:
<a
href="javascript:document.myForm.action='theLink';document.myForm.submit();">Click
here</a>
...for each link. And you'd have one single form.
BTW. In you first email you wrote: "plan they are pushing is to make our
site(s) free of all GET variables".
Who are "they"?
Robert