This is a discussion on "Submitting a form on one page!" within the Classic ASP section. This forum, and the thread "Submitting a form on one page! are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Submitting a form on one page!
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
Submitting a form on one page!
Hello . How do I go about submitting a form on the page the form is actually on. I don't have any idea as to how this is done. ( i know I might just be missing 1 small line but I don't know how to do this). I want to do it this way so I can use ASP Validation and not make my user have to click back to the form page. Thanks for your help.
Wade |
|
|
|
#2
|
|||
|
|||
|
its called "Post Back"
You simply set the forms action to the same page name and then check the request method (its gonna be GET on the first page request and POST after submission) like this:
|
|
#3
|
|||
|
|||
|
Thank ya kindly Smokie. It works like a charm.
|
|
#4
|
|||
|
|||
|
No problem. BTW, in asp.net, all forms post back to themselves (unless you dont want them to!)
|
|
#5
|
|||
|
|||
|
it is actually the preferred way to submit/process a form, hence the .NET hardcode.
|
|
#6
|
|||
|
|||
|
Yeah, I played with .Net for a little while, but It's too confusing for me and I just don't have the time to learn it. Maybe if ASP ever isn't on high demand (at least where I'm from) I'll make the switch.
|
![]() |
| Tags |
| submitting, form, page |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Submitting a parent form from a child window in IE 7 | livehed | JavaScript Forum | 0 | Feb 15th, 2007 16:23 |
| Link form to different page after submitting | facehead | Web Page Design | 3 | Nov 3rd, 2006 21:05 |
| submitting an enquiry form | dbh_21 | Web Page Design | 11 | Jul 11th, 2006 16:38 |
| Auto Submitting a Form | ClaireB | JavaScript Forum | 2 | Nov 25th, 2005 08:00 |
| Submitting Web form results to a database | theproman23 | Databases | 2 | Jun 30th, 2005 13:21 |