The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Form with out redirect, Simple form to send answer to one question
Albert
post Jun 6 2010, 05:24 AM
Post #1


Newbie
*

Group: Members
Posts: 10
Joined: 5-September 06
Member No.: 74



hey

I have a simple form to collect an answer to one question using radio buttons



I dont want anything to happen after submit is pressed like redirect

just to stay on the same page

can anyone help



User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Brian Chandler
post Jun 6 2010, 05:37 AM
Post #2


Jocular coder
********

Group: Members
Posts: 2,298
Joined: 31-August 06
Member No.: 43



Simply submit the page to itself.

In general, though, it is a good idea to provide (visual) feedback, so the user knows the information has been submitted.

Assuming the page has a mass of information on it, you could send it back, with the form replaced by a panel saying "Thanks for responding!" - or similar.

If the page is *enormous* (probably a bad idea in itself) you can use javascript ("Ajax") to submit the info without reloading the page, but this is likely to be less robust.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 31st May 2020 - 12:18 AM