Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-03-2012, 08:02 PM   PM User | #1
Ardiv
New to the CF scene

 
Join Date: Dec 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Ardiv is an unknown quantity at this point
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
Ardiv is offline   Reply With Quote
Old 12-03-2012, 10:31 PM   PM User | #2
Fou-Lu
God Emperor


 
Fou-Lu's Avatar
 
Join Date: Sep 2002
Location: Saskatoon, Saskatchewan
Posts: 15,635
Thanks: 4
Thanked 2,448 Times in 2,417 Posts
Fou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to all
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.
Fou-Lu is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:27 PM.


Advertisement
Log in to turn off these ads.