timur Posted March 14, 2003 Posted March 14, 2003 hey iam looking for some help i finished my website and i put a script in to my movie page where people can vote.... by the way \ i read this book and tells me what code to put and so i puted like this >"/cgi-bin/survey.pl" and why when i uploaded my page and stuff when i hit like vote or submit it gives me error PAGE?????? if any one here don't know reason does any one here knows how to make like polls or vote stuff/ Quote
Lianna Posted March 14, 2003 Posted March 14, 2003 timur, Give us the address of the page that contains the poll. That way, we can go take a look at your code in context. Thanks. Lianna Quote
timur Posted March 14, 2003 Author Posted March 14, 2003 yes sure www.theent.com/test.html its only a test but i think i need to find some where survey.pl and where and how do i install it to cgi-bin folder? Quote
Lianna Posted March 14, 2003 Posted March 14, 2003 Ok, several questions: 1. Do you have a file called survey.pl? 2. Do you have it saved to public_html/cgi-bin? 3. Did you upload it in ASCII mode? If you do not have a file called survey.pl, then I suggesting reading further (or backward) in your book that provides the code. Surely they provide the contents of survey.pl file in the book. Create that file per their instructions and then upload to the cgi-bin directory of your site. Make sure that you upload using ASCII, not binary. Lianna Quote
champagnemojo Posted March 14, 2003 Posted March 14, 2003 Rather than trying to create your own script...if that's what you're doing...why not just use a free script that does what you're wanting? I've used this Free Survey Script and it works great. It gives you an admin page to view and download results. And best of all, it's extremely easy to get it up and running. Quote
timur Posted March 14, 2003 Author Posted March 14, 2003 no iam not trying to creat my own i don't even know how yes thank you champagnemojo i downloaded but how do i know install it???? Quote
KevinW Posted March 14, 2003 Posted March 14, 2003 If you download the ZIP version of the survey file to your PC, and then unzip the file (using WinZIP or PKZIP) to a new folder, you will find included a README file which includes the detailed steps required to instal it on your web site. I've listed the summary of the steps required further on down. On the other hand, you may wish to consider a much easier road, by using a free 3rd party web company, such as Bravenet to imlement your poll. They do all the work for you. All you need to do is include a small snippet of HTML code that they will provde you. BTW, here is a summary of the steps required to install the survey program you were looking at: SUMMARY ------------------------------------------------ This script allows you to conduct a survey over the web and stores the responses in a MySQL database. You can retrieve the results over the web in either a pretty HTML table, bargraph summary, or download to a spreadsheet. 1. make the HTML form for the survey 2. edit a few lines of the CGI script to accomadate your questions 3. create an empty MySQL database to hold the answers -kw Quote
champagnemojo Posted March 15, 2003 Posted March 15, 2003 no iam not trying to creat my own i don't even know how yes thank you champagnemojo i downloaded but how do i know install it???? It's pretty easy, but it is kind of annoying at times...because you have to get it all exactly right. You already have the html form...though I would change the values it returns to numbers. You can use that one...just change the form action, like: <form action="http://www.yourserver.com/cgi-bin/survey/survey.cgi"> Move all the files into your cgi-bin...you can also get the tar.gz file and extract the contents within the Control Panel. But if you use WinZip make sure to transfer everything in Ascii mode. In CPanel, change the permission of the cgi scripts to 755. If you want to be able to download an excel file also create a new folder in the public_html directory called whatever you want (mine's called excel). Change the permission of the excel folder to 777. This is where it'll write the data to for downloading csv files. Edit "survey.cgi" so that it gets the entries. For the survey you have up now, just change what's in there to my $rating = $cur->param("rating"), etc. Create a MySQL database using the CPanel. Then enter the appropriate entries into "sitevariables.pl" under database variables. At the bottom of sitevariables.pl add the info of where your excel directory is. That's all I can think of that you have to do really. Bravenet looks good too...it's all really a matter of whether or not you care if it's on your server or somebody else's. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.