Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Dec 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile Questions from a beginner

    Hey, I've just started a Online Custom Tailor website and was looking for ways for people to submit their measurements forms to us easily. Then i did a few google search and stumbled upon this page:

    http://www.robinsonstailor.com/measure-gents.htm

    I was interested with their measurement form so I did the right click thingy and copied the source code for the measurement form. Soon after doing a little bit of tweaking here and there, changing the "send email" to my email, I noticed that I need some sort of server to store/send the data (Maybe? I really have no clue lol).

    I then browse through the source code again and notice this line:
    http://www.robinsonstailor.com/cgi-sys/FormMail.cgi

    Can anyone help explain to me what is this cgi-sys thingy is? (I really have no experience coding, I spent my entire life copying source codes ) and how can I fix this and utilize the Measurement Form for my page too?

    Thank you

  • #2
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,994
    Thanks
    4
    Thanked 2,662 Times in 2,631 Posts
    Source code (via browser -> view source) is only useful on a client side. So if you have a form (I haven't followed the links) that dynamically changes, the source of the Javascript would allow you to do that.
    The cgi-sys/FormMail.cgi is likely the form action. On submit, the form sends the data using the method provided (or get if no method is specified) to the script targeted by action. In this case, what appears to be a PERL script.
    To create an interactive form that does something other than just presentation, you need to submit the data to a server processing language (such as PHP, perl, ASP/ASP.NET, JSP, python, etc, etc), and the server language processes the input and deals with it accordingly (storing in a database or file, emailing it, etc).
    You may want to start here: http://php.net/manual/en/tutorial.forms.php and then do a quick google search for php form submission tutorials. You'll likely find a wide variety that show how to submit data to a database or file storage as well as email.


  •  

    Posting Permissions

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