Forum Moderators: phranque

Message Too Old, No Replies

Sending forms without using .asp

Looking for an alternative

         

mikko

11:09 am on May 11, 2004 (gmt 0)

10+ Year Member



I would like to send a form but have a few problems. I have used .asp in the past but want the site to be 100%.

I had thought about using a cgi script from Matts scipt archive but it will be a professional site and dont want people to see Matts Script Archive on the 'Thankyou for filling in the form page'.

If any one has any ideas or can point me to a tutorial it would be much appreciated.
Thanks

pageoneresults

11:14 am on May 11, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



What's wrong with using an asp mail script? There are plenty of them out there and the ones I am familiar with perform flawlessly.

What kinds of issues were you having with your asp script?

mikko

11:38 am on May 11, 2004 (gmt 0)

10+ Year Member



Well the idea was to have this form on every page - im doing a 'loans' website that enables people to fill in the form at some point on every page, but if each page is going to be completely done in .asp my success so far in SE's etc has been poor compared to just html.
Any ideas?

pageoneresults

11:43 am on May 11, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



but if each page is going to be completely done in .asp my success so far in SE's etc has been poor compared to just html.

Hmmm, not sure what you are referring to with the above comment. Are you saying that your asp pages were not performing well in the SERPs? If so, the asp would have nothing to do with it.

ppg

11:49 am on May 11, 2004 (gmt 0)

10+ Year Member



Surely you can still have all those forms on the pages as pure html. You just need the destination page of the form to be asp.

Depends on how you do your validation though. The way I do it is to redirect a form submission which fails validation to a dynamic page with the same form but the fields which passed the validation autofilled so the user doesn't have to fill them in again, and for that you need a dynamic page.

I'm sure there'd be a way round that too though.

Easy_Coder

3:38 am on May 13, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You can process ASP code in your .html pages with a minor change to the IIS Properties for the site.

Launch the IIS Administrator... Properties... Home Directory Tab and choose the configuration button. Map the .htm and .html extensions to the asp.dll which should be in your System32 dir. Limit the verbs to GET,POST & HEAD.

This will allow you to create all of your pages as .htm or .html. Any requests for these pages will get passed into the ASP Scripting Engine for asp code execution. So you can stuff ASP right inside your htm or html pages.

mikko

8:26 am on May 21, 2004 (gmt 0)

10+ Year Member



OK, i have managed to create a form in html that processes through an .asp page but the only problem i have now is that there is no validation.
I am using Dreamweaver and see that you can add behaviours but i think someone can still hit submit and send the form.
Any easy ideas?

Easy_Coder

11:04 am on May 21, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You need to build in validation, you can go in any of these directions:

Client Side
Client & Server Side
Server Side

DErob

5:32 pm on May 22, 2004 (gmt 0)



Hi Mikko

I don't know if this is of any help to you, but as all of my web sites are relatively simple and have no need for ASP etc., I use a CGI mail script from CGIScript.net that allows you to make multiple forms on the fly. It is similar to Matt's CGI forms, but it is much superior in that it has tons of options in it and you can choose your fields and customize them from a menu system. You also have the option of built-in autoresponders as well if you need them. You don't have to handcode it or go into the code and make adjustments. It is all done from a menu system.

It has the usual "generated by CGIScripts.net" on the bottom of the forms, but you can easily go in and erase that line with no problem and customize it for yourself.

Its costs $50 for unlimited use on one domain and is probably no good for the ASP experts, but it works for me and is simple to use.

Maybe it might help someone else too.

HTH