Click here to get back home

Submit a form using anchors?

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Submit a form using anchors? listerofsmeg01 11-08-2006
Get Chitika Premium
Posted by listerofsmeg01 on November 8, 2006, 3:53 pm
Please log in for more thread options


I think I probably know that answer, but I will ask anyway.
Is it possible to submit a form using a standard anchor link, rather
than a submit button?

The reason I ask is that I have a standard form, but I want links to
enable to user to add additional data for each section if they desire.
In order for what they have already typed in to be preserved, I need to
submit the form data when one of these links is clicked. This is fairly
straightforward in Javascript, but I want to add non JS support too.

I suspect this is not possible, so I will have to think of another
design in this case, but thought I would check. And before you ask, no
it is not possible to put all the information on the one form, and it
would be highly redundant in most cases to present it as a straight
series of forms :-(


Thanks


Posted by Harlan Messinger on November 8, 2006, 5:02 pm
Please log in for more thread options


listerofsmeg01@hotmail.com wrote:
> I think I probably know that answer, but I will ask anyway.
> Is it possible to submit a form using a standard anchor link, rather
> than a submit button?

Using Javascript.

>
> The reason I ask is that I have a standard form, but I want links to
> enable to user to add additional data for each section if they desire.
> In order for what they have already typed in to be preserved, I need to
> submit the form data when one of these links is clicked. This is fairly
> straightforward in Javascript, but I want to add non JS support too.

Try reorganizing your form. Each section is a separate page. If a
section might be inapplicable, you can have two buttons: Submit and Skip
This Section.

Posted by vynogradov on November 9, 2006, 4:05 am
Please log in for more thread options


Another option is to load all form on one page, but hide some of it's
part that are redundant to most users. Having links like "customize
section ``C''" just showing hidden portions of the form. Such solution
is faster for a user, but if you want you site to work without
javascript to than it's not an option.

Maybe you can have buttons to look like links and do the work you want.


Posted by Andy Dingley on November 9, 2006, 5:46 am
Please log in for more thread options



listerofsmeg01@hotmail.com wrote:

> Is it possible to submit a form using a standard anchor link, rather
> than a submit button?

No - unless you use scripting.

Easiest fix is to keep the standard form submission, but use CSS to
style the submit to look however you want - such as like a simple link.


Posted by pegasusflightresources@gmail.c on November 9, 2006, 6:54 am
Please log in for more thread options



listerofsmeg01@hotmail.com wrote:
> I think I probably know that answer, but I will ask anyway.
> Is it possible to submit a form using a standard anchor link, rather
> than a submit button?
>
> The reason I ask is that I have a standard form, but I want links to
> enable to user to add additional data for each section if they desire.
> In order for what they have already typed in to be preserved, I need to
> submit the form data when one of these links is clicked. This is fairly
> straightforward in Javascript, but I want to add non JS support too.
>
> I suspect this is not possible, so I will have to think of another
> design in this case, but thought I would check. And before you ask, no
> it is not possible to put all the information on the one form, and it
> would be highly redundant in most cases to present it as a straight
> series of forms :-(
>
>
> Thanks

Dear sir,
You can either end up using scripting such as JavaScript to
automatically make the extra sections appear by clicking the link, and
changing the link to make it submit, or you can make yourself
completely rewrite the page dynamically with a server-side language.
The first method is the easiest, although it might not work with
everyone's browser.

I have the honor to remain your most humble and Ob't Sv't in our war
against the King.

--
Patrick Reilly
1st Coy.
Colonel Seth Warner's Regiment


Similar ThreadsPosted
Submit a form with hyperlink August 6, 2004, 11:56 pm
Submit a form without using a button? December 24, 2004, 4:26 pm
Form submit problem in IE March 31, 2006, 7:41 am
How to get rid of focus on submit button of a form. September 5, 2004, 1:21 pm
Restoring OTHER form field after submit September 23, 2005, 1:43 am
Saving HTML Form without Submit December 8, 2005, 4:23 pm
Trying to get the submit form to work - confused, please help! March 17, 2008, 3:12 pm
Using multiple button type="submit" elements within a form April 15, 2005, 4:24 pm
Newbie: How to use graphic instead of submit button on HTML form? August 29, 2006, 5:57 am
Multiple form submit buttons - setting a default button March 19, 2008, 4:03 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap