Computer Help and Spyware Removal Computer Help and Spyware Removal Computer Help and Spyware Removal Computer Help Forums Windows Startup Programs Database Spyware and Malware Removal Guides Computer Tutorials Uninstall Database File Database Computer Glossary Computer Resources
 

Welcome Guest ( Log In | Click here to Register a free account now! )



Register a free account to unlock additional features at BleepingComputer.com
Welcome to Bleeping Computer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.
Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

 
Reply to this topicStart new topic
> Handling Online Form Results
Extrodewise
post Mar 14 2008, 12:08 PM
Post #1


Member
**

Group: Members
Posts: 60
Joined: 24-October 07
Member No.: 165,199



Hey guys, I'm workin on a site and I'm definitely gonna need to have forms on it. How do I receive the form results. What are the available options and how can I use them. Any link to articles, eBooks or other reference stuffs in addition to your opinions will be greatly appreciated. Thanks a Lot...!
Go to the top of the page
 
+Quote Post
groovicus
post Mar 14 2008, 12:55 PM
Post #2


Hail Groovicus!
******

Group: Site Admin
Posts: 5,991
Joined: 5-June 04
From: Vermillion, SD
Member No.: 689



There is no way that question can be answered in one short post. There are many options available; Perl, CGI, VB.Net, Java, C++, Ruby, PHP, ASP, you name it. It sort of depends on what you want to do with the form results. Do you know any programming languages? (CSS and HTML are not programming languages)

As far as the mechanics behind it, the form sends data to the server. An application of the server gets the data and does something with it. That's it.


--------------------
Go to the top of the page
 
+Quote Post
Extrodewise
post Mar 14 2008, 02:30 PM
Post #3


Member
**

Group: Members
Posts: 60
Joined: 24-October 07
Member No.: 165,199



Dont know any programming languages yet, still working on mastering them. What would be the cheapest and shortest way to do that from within FrontPage. Something like adding some Codes to my site or whateva. Just Suggestions...
Go to the top of the page
 
+Quote Post
groovicus
post Mar 14 2008, 05:13 PM
Post #4


Hail Groovicus!
******

Group: Site Admin
Posts: 5,991
Joined: 5-June 04
From: Vermillion, SD
Member No.: 689



QUOTE
What would be the cheapest and shortest way to do that from within FrontPage

You can't. FrontPage is a tool for designing web pages.

QUOTE
Something like adding some Codes to my site or whateva

You can't just add some codes to the website, because the website wouldn't know what to do with the code. Just grabbing a random example off the web, you would start out with an HTML forms something like this:
CODE
<html><body>
<h4>Tizag Art Supply Order Form</h4>
<form action="process.php" method="post">
<select name="item">
<option>Paint</option>
<option>Brushes</option>
<option>Erasers</option>
</select>
Quantity: <input name="quantity" type="text" />
<input type="submit" />
</form>
</body></html>


When the form is filled in and the user hits the submit button, the information in the form is sent back to the server. In this case, it is sending the information to a file called 'process.php'. The .php file looks like this:
CODE
<?php
$quantity = $_POST['quantity'];
$item = $_POST['item'];
?>


The .php script then gets the information from the form, and stores it in the form of a couple of variables. Presumably at this point, another .php application would take that information and do something with it, such as add the information to a shopping cart, or something else.

In order for this set up to work, the server needs to be able to run .php.

QUOTE
Just Suggestions


I asked you what you were trying to accomplish, so that we could give you sensible suggestions. We also have no idea what sort of setup your web hosting service has, so it is a bit pointless to make any suggestions without knowing that also. smile.gif


--------------------
Go to the top of the page
 
+Quote Post
Extrodewise
post Mar 15 2008, 02:57 PM
Post #5


Member
**

Group: Members
Posts: 60
Joined: 24-October 07
Member No.: 165,199



Hey thanks for your help so far. What I'm thinking of having is more or less a feedback form where users can drop comments and subscribe to some form of newslettters that I'd be sending periodically. I'm thinking there's a way one can set up the forms such that the results are delivered to an email address, something similar to what Yahoo! calls email forms. I'd have used Yahoo!'s feature but for the fact that after clicking the submit button, what you see is something like this: The following Form results have been sent and you'll see everything you filled out in the form, now that's not professional at all. If there was a way of linking the submittion process to a thank you page such that the results are sent to the specified email address without showing the results, instead showing something like Thank You for your interest in ... We have received your entry and will contact you shortly, I will definitely stick to email forms. I hope this greatly describes my intentions and is not too lenghty. Thanks a lot.
Go to the top of the page
 
+Quote Post
groovicus
post Mar 15 2008, 03:11 PM
Post #6


Hail Groovicus!
******

Group: Site Admin
Posts: 5,991
Joined: 5-June 04
From: Vermillion, SD
Member No.: 689



QUOTE
The following Form results have been sent and you'll see everything you filled out in the form, now that's not professional at all.

Actually, that is completely professional. It allows the user to verify that they entered their information correctly, and is an industry standard on everything from e-commerce web sites to forum sign-ups.

Regardless, all you need to do is have the information emailed to you (which has been discussed here before), and have it load a thank-you page once the email has been submitted. Try this example:
http://www.chami.com/tips/Internet/010597I.html

That is the best that you are going to be able to do without using some server-side technology.


--------------------
Go to the top of the page
 
+Quote Post
Extrodewise
post Mar 16 2008, 01:08 PM
Post #7


Member
**

Group: Members
Posts: 60
Joined: 24-October 07
Member No.: 165,199



Hey thanks Pal, got some useful stuff from that page. But I dont think they specified how to make the thank you page load as soon as the results are sent. One more thing, since you said having the form results displayed is professional, I'm thinking of sticking to it. The problem with that page is that it is completely blank with only the form results displayed in text form, no colours, formatting or whatever; infact one might think he/she has been redirected from the site. Is there a way of making the results page load with the actual formatting of the site, what I mean is having the ..."The following form results has been sent..." displayed with the actual formatting of the site (Home, about us etc buttons intact). If you dont get the picture let's just see how we can make the thank you page load in addition to having the results emailed to me. Thanks once again for your help pal, I owe you one!!!
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



Lo-Fi Version Time is now: 11th October 2008 - 07:51 AM


Advertise   |   About Us   |   Terms of Use   |   Privacy Policy   |   Contact Us   |   Site Map   |   Chat   |   Tutorials   |   Uninstall List
Discussion Forums   |   The Computer Glossary   |   Resources   |   RSS Feeds   |   Startups   |   The File Database   |   Malware Removal Guides

© 2003-2008 All Rights Reserved Bleeping Computer LLC.