HighDots Forums  

link as submit in a form

alt.html.tags alt.html.tags


Discuss link as submit in a form in the alt.html.tags forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
chris
 
Posts: n/a

Default link as submit in a form - 12-17-2003 , 12:28 PM






is there a way to have just a link instead of a submit button that will POST
the form ????


thanks in advance



Reply With Quote
  #2  
Old   
David Dorward
 
Posts: n/a

Default Re: link as submit in a form - 12-17-2003 , 01:03 PM






chris wrote:

Quote:
is there a way to have just a link instead of a submit button that will
POST the form ????
http://tom.me.uk/scripting/submit.asp

--
David Dorward <http://dorward.me.uk/>


Reply With Quote
  #3  
Old   
Eric Bohlman
 
Posts: n/a

Default Re: link as submit in a form - 12-17-2003 , 09:42 PM



"chris" <someone (AT) here (DOT) com> wrote in news:3fe0935e$1 (AT) funnel (DOT) arach.net.au:

Quote:
is there a way to have just a link instead of a submit button that
will POST the form ????
It can be done using scripting, but it's a bad idea unless there are some
aspects of your site that you aren't telling us about. In general, users
expect buttons to submit forms and links to take them to new pages.
Fundamental user-interface behavior should be as unsurprising as possible;
you need to have a *really* good reason to tinker with it.

Some things that may be unacceptable on the WWW may be at least marginally
acceptable in intranet applications, but you haven't told us what you're
trying to accomplish. I get the hunch that you've got an "XY problem" (you
want to accomplish goal X, and you've decided that implementation Y is the
way to accomplish it, but there may be a better way of achieving X).


Reply With Quote
  #4  
Old   
chris
 
Posts: n/a

Default Re: link as submit in a form - 12-17-2003 , 11:15 PM



ok what i am trying to do is link to another page and send information along
to that page by way of hidden fields, rather than use the
secondpage.php?info=blah etc

any other idea's would be greatly appreciated

"Eric Bohlman" <ebohlman (AT) earthlink (DOT) net> wrote

Quote:
"chris" <someone (AT) here (DOT) com> wrote in news:3fe0935e$1 (AT) funnel (DOT) arach.net.au:

is there a way to have just a link instead of a submit button that
will POST the form ????

It can be done using scripting, but it's a bad idea unless there are some
aspects of your site that you aren't telling us about. In general, users
expect buttons to submit forms and links to take them to new pages.
Fundamental user-interface behavior should be as unsurprising as possible;
you need to have a *really* good reason to tinker with it.

Some things that may be unacceptable on the WWW may be at least marginally
acceptable in intranet applications, but you haven't told us what you're
trying to accomplish. I get the hunch that you've got an "XY problem"
(you
want to accomplish goal X, and you've decided that implementation Y is the
way to accomplish it, but there may be a better way of achieving X).



Reply With Quote
  #5  
Old   
Eric Bohlman
 
Posts: n/a

Default Re: link as submit in a form - 12-18-2003 , 02:05 AM



"chris" <someone (AT) here (DOT) com> wrote in news:3fe12ae0$1 (AT) funnel (DOT) arach.net.au:

Quote:
ok what i am trying to do is link to another page and send information
along to that page by way of hidden fields, rather than use the
secondpage.php?info=blah etc

any other idea's would be greatly appreciated
Presumably, there's only a small number of possible combinations of the
values of those hidden fields. That means that each combination can be
associated with an encoding (small numbers work best) that can be decoded
by the server-side script that produces the linked resource. And that in
turn means that each page can include that encoding in the URL it links to.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.