This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Forms containing links Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Forms containing links" Watch "Forms containing links" New topic
Author

Forms containing links

Tom Panahil
Greenhorn

Joined: May 31, 2006
Posts: 2
I want to pass a bunch of parameters with a request, and currently use links, but do not like exposing all the parameters.

I want to use a form with hidden input fields, but still want to have the link, and have it look/act like a link, just have it do the form submit method only.

Any thoughts?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 63208
    
  69

Moved to the HTML/Javascript forum.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 63208
    
  69

Use javascript to submit the hidden form upon clicking the link:



Be sure that the form method is POST.
[ May 31, 2006: Message edited by: Bear Bibeault ]
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15385
    
    6
All of that hidden information is still game for people to see and change so do not think it is any safer.

Eric
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Forms containing links
 
It's not a secret anymore!