Forum Moderators: open

Message Too Old, No Replies

Form Question

...form for customers to print out their own paperwork on our website?

         

RussellC

9:51 pm on Mar 25, 2002 (gmt 0)

10+ Year Member



I am wanting to make a form for customers to print out their own paperwork on our website. How can I do this without using a Database? If I just make a simple for form, how can I make the info they input go to a nice formatted page that they can print out and send in to us when they ship their item.

Am I being clear? I know how to make regular forms that E-mail info to us and send the user to a form complete page, but this is a little more complex.

Thanks for any help.

-Russell

txbakers

10:42 pm on Mar 25, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You might want to get a CGI script for this. You can write their data to a text file first, then retreive it and format it nicely.

Or you can do it all with client side javascript, but it might be complicated.

Basically the user would fill out the form then click submit. On the submit button you would validate the form, then instead of an actual HTML submit, I would use the window.open method to open a new window, and , in the new window, use the opener.document.formname.fieldname.value to get the information.

Then you can format it any way you want.

RussellC

10:47 pm on Mar 25, 2002 (gmt 0)

10+ Year Member



Thanks for the reply. Are their any free CGI scripts that you know of that do this? Cause I have no idea how to do it the way you said to do it.

Thanks

txbakers

3:21 am on Mar 26, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I don't know of any scripts in particular that do this, but there are lots available at www.cgi-resources.com and you can always Search on cgi scripts. Tons of free ones.

For the javascript idea you could start with a basic tutorial and learn as you go. Remember - the journey IS the destination.....

BlobFisk

11:32 am on Mar 26, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You can do this quite easily in ASP as long as you don't want to save the info anywhere (then you'll need a database or some way of writing to text files, like PHP or CGI).

In the ASP, you could use a form to take in the users details, submit it to another ASP page which reads in the form variables (using the input name property) and then you can lay the data out any way you wish on the page, by writing the users data dynamically to the page where appropriate.

HTH

BolbFisk