Thread: HTML question
View Single Post
Old 08-04-2003, 04:31 PM   #4 (permalink)
Latch
In Your Dreams
 
Latch's Avatar
 
Location: City of Lights
You can't use POST with links.. exactly...

I had this same problem, I solved it by:

- Create a FORM (sounds like you already have).
- Make the variables you want to put in hidden items in the form.
- Don't put a submit button on the page.
- The link that you want to submit with should be coded something like this:
>A HREF="javascript:forms[0].submit;"<
you should be able to replace the "forms[0]" with the form name. Also, reverse the ><'s obviously.

Clicking on that HREF should run your FORM's Submit action without them having to click a button. You could also create a function that receives variables, set's the FORM's (already existing) HIDDEN inputs, and then runs submit on the form. That allows you to have dynamic FORMs.

If you want me to explain some more, let me know. I found that once you get it working, it's great.
Latch is offline  
 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73