Forum Moderators: open

Message Too Old, No Replies

Form HELP, saw a great idea with info being carried

Also sending the form - whats the best without using asp?

         

mikko

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

10+ Year Member



Hi, i am creating a web site for a mortgage company. I have seen this idea on another mortgage web site so know it can be done i just cant find any tutorials on the matter.

On each page i would like the user to begin filling in the application form with maybe 5 or 6 fields, when thet click on it continue button they would be taken to the application.htm form in full so they could fill in ALL the details, but this page remebers the 5 or 6 fields of information that previously had been entered.
Any help would be good.

Also for sending the form, i have previously used .asp but want to keep the site 100% html. I have thought about cgi scipt from Matts script Archive but its a professional site and i dont want people to see the 'thankyou page' being picked up from Matts Script Archive, any ideas?

shahid

12:02 pm on May 11, 2004 (gmt 0)

10+ Year Member



Try it in php. You will find many sample codes for this in php if you searh google.

Nutter

1:51 pm on May 11, 2004 (gmt 0)

10+ Year Member



It'd be pretty easy in PHP. Just use the next page as the action from the first page's form. You'd then just pull the value=x from either the $_POST[] or $_GET[] varialbles. Post would probably be better. Most of the page could still be HTML.

Something like this: <input type="text" value="<?php echo $_POST['varname'];?>" name="Whatever"> (Hopefully this doesn't get messed up when I post).

If you still want the HTML extension it's possible to set up your server to parse .html files as .php. I don't know how, I just know it's possible.

ASP you could do something similar, but it's been a while since I've used ASP and I can't think of the code off the top of my head.

- Ryan

mikko

2:09 pm on May 11, 2004 (gmt 0)

10+ Year Member



My problem is i have never even opened a PHP book. mmmmm i wonder if it s worth investigating further.. thanks for your help

Nutter

4:39 pm on May 11, 2004 (gmt 0)

10+ Year Member



mikko,
Just passing the variables to the next page is fairly simple PHP. What I wrote in my last message should be all you need. You'll still need a script to process the form to you though. Easiest would probably be email and PHP has a mail() function built in that's pretty easy. But, I'm guessing this may be some information that needs to be secure so email isn't really the way to go. Writing to a database or a text file on the server and then possible emailing you telling you someone new filled out the form would be relatively easy. Sticky me if you decide to go w/ PHP and need some help.

- Ryan

mikko

9:06 am on May 12, 2004 (gmt 0)

10+ Year Member



Thanks everyone, i have managed to create the form in html but it points to an asp page on the server.
I was wonderin though whats the best (and cheapest) way for me to have the form being secure and away from 3rd parties?