Java Script Help
Results 1 to 2 of 2

Thread: Java Script Help

  1. #1

    Java Script Help

    GOOD NOON EVERY BODY. I M VERY MUCH NEW ABOUT WEB SITE DESIGNING AND JUST NOW I HAVE COME TO KNOW ABOUT JAVA SCRIPT SO SITLL I DONT KNOW WELL. BUT I NEED ONE PROGG WITH MY SITE. INFACT, I M SEARCHING FOR SCRIPT WHICH CAN FIRST POST THE FORM AND THEN REDIRECT THE USER ON THE PERTICULAR PAGE. I WANT TO KNOW IS IT POSSIBLE? AND IS THERE SOME BODY WHO CAN HELP ME? IS THERE SOME WAY IN HTML TO POST THE SAME FORM AT TWO PLACES??? THANKS IN ADVANCE .
    REGARDS

  2. #2
    GreekGoddess
    Guest
    There are several options when it comes to forms depending on the flexibility you want your form to have. Javascript can play a major role in making a form dynamic (validating e-mail, redirection, making sure form fields are filled in) but it is not necessary.

    Let me try to clarify. Say you were writing a basic form, a membership application for your gaming clan. You want the results of that form e-mailed to you. Because it's plain HTML, no validation would take place whatsoever without some form of script to do so for you. The form would look like this:

    <form method="post" action="mailto:yourname@youremail.com">
    Different types of questions coded in here, etc.
    </form>

    You can process your form with a Perl script, if you're familiar with Perl (and even if you're not there are quite a few explanatory scripts here http://www.hotscripts.com/Perl/Scrip...rm_Processors/ )
    Your script would look like this with your processor script for explanation purposes being process.cgi:

    <form method="post"
    action="http://www.yourdomain.com/cgi-bin/process.cgi">
    Different types of questions coded in here, etc.
    </form>

    Some cgi scripts are setup to send to more than one account and use programs like sendmail to process the request. And a lot of nifty built in features like a redirection page that would give the user filling out the form a thank you, can validate e-mail, etc. Just remember not all scripts are created equally. And to use a script such as this, you'd need access on your server to a cgi bin and some sort of sendmail type program or equivalent.

    Now...back to javascript and the first form example...there are several things you can use going this route...this page explains some of them:

    http://www.uwplatt.edu/~web/wtc/jsforms/

    There are also a ton of other resources out there not covered here that relates to this same subject and can easily be found by searching google.

    I hope I have helped some...If you have any more questions, I'd be glad to help.

    (BTW, you might not want to type in all CAPS when posting, it is seen as yelling in text based mediums.)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •