HTML - Creating A Poll Script
Ok this is probably not in the right section because i do not see a PHP form but oh well sorry, so i want to make like a poll script and stuff for people to vote how would i do it.
This is what i wanted for example: "Who do you want to be DJ of The Week?" -DJ Brad -DJ Mod -DJ Kris -DJ Physco -DJ Laugh SUBMIT BUTTON Something like that BUT when they click Submit it takes them to a page that shows "thanks for voting" but i do not want them to see the results on who voted for who the only person that should see the votes is the Admin which is me, possibly could it be sent to my email? I know how to edit it i just need a full script of what i just explained the rest i can edit sorry if its to much if you need more explaining just add my msn its dj-cann0n@live.com hit me up their. Similar TutorialsHi guys, i was wondering if you would be able to help me out. Im attempting to create a poll on my website but im struggling to get the results i want. What im trying to go is have the poll on one page, then on a separate page just have shown the top result which also shows the percentage of people who chose that option. Thanks alot in advance for your help. I am not sure where this would belong on the forum but I would like to suggest a discussion category on IE7 only (CSS/XHTML). Bad idea? I created the look of the poll through Dreamweaver. How do I link the poll from my forums so that when they vote on the front page it will vote on the forums? Basically trying to make my front page a portal I guess from scratch. Heres a link to my homepage with the poll: http://compkiosk.com/ And heres the forum with the poll: http://www.compkiosk.com/Forums/viewtopic.php?f=51&t=8 I don't know how to make the Radio buttons work with the submit button. Hi. i have a problem. I made a template... and i create a poll on a site and i put that poll on my site and i don't get how to put that on the right og the template... when i use allign="right" it goes to far and i can use spaces because the poll gets one row down. Thanks in advance. delete please I'm having an issue with displaying poll results. The poll bar is made up of left cap, center bar and right cap images. The center bar is stretched according to survey result percentage. The problem is, if a result is 100% the combined poll images are not (including COUNT - see below) contained on the same line. Also included attachment to give better idea. Anything less than 95% and the bar shows ok. Here's the code: Code: <td> <img src="poll_left.gif"><img src="poll_center.gif" width="{survey_question_row.survey_row.PERCENT}%" height="12"><img src="poll_right.gif"> {survey_question_row.survey_row.COUNT} </td> How do I contain the three images (along with survey_row.COUNT) on the same line? If I remove the " % " then obviously the bar shows as pixel width which isn't what I want - bar ends up very small in length. I know I probably need to add style code to <td> to restrict and contain all content to the same line but afraid I don't know what. Or does an equation in width="{survey_question_row.survey_row.PERCENT}%" requires adding to reduce the width so everything fits on same line? Would appreciate any help and thanks in advance. Ok, here is the code to view my polls results. It is supposed to view the poll in the same division as the poll is posted... however this code doesn't work very well when having the page in a folder other than the main directory: Code: <a href="$this->form_forward?action=results&poll_ident=$poll_id">$pollvars[result_text]</a> Click the "view results" page on the homepage: http://www.pzfantasyfootball.com to see what its supposed to do... Then click the view results on this page: http://www.pzfantasyfootball.com/ran...lyrankings.php to get an error message. I tried sticking http://www.pzfantasyfootball.com in front of the code I gave... but the result was it opening the results in a big white screen, rather than in the same position. Help would be greatly appreciated! I could use some help with this. I'm trying to make a basic poll. What I want is that after the user votes, it shows the results for about 2-3 seconds and then forwards them to one of my advertiser's pages in a new window. Because of the 2nd part, I haven't been able to use any of the available WP plugins since they store all the results on their servers. What's the right way to do this? After the success of our last YoungEntrepreneur.com poll on The Top 20 Startup Mistakes that entrepreneurs make, we're ready to get our new poll started! This time I want to talk about raising money. It's been said that there is no such thing as a startup with too much money. You need capital to invest in sales, marketing, staff, offices, research, etc. Every business needs some startup capital so my question to you is what's the best way to raise money? Hey all, new here and not a very good coder at all, but i find pieces of information and try and make best of it....and as far i can see i cant find this sort of information on this website my problem is im trying to create a code that will log in to a website, wait a few (i.e. 2 seconds) then go to a second web page that is a part of this site for example --> www.htmlforum.com --> (automate login) --> then go to www.htmlforum.com/example this is what i have found so far </head> <body> <FORM action=http://www.thewebsiteexample.com/login.php method= post name=login> <INPUT class=login_input type=hidden name=usrname value="myusername"> <INPUT class=login_input type=hidden name=uemail value="myemail@hotmail.com"> <INPUT class=login_input type=hidden name=peeword value="mypassword"> <INPUT class=login_input type=submit value=Login> <body onload="document.login.submit();"> </form> </body> this code allows me to log in successfully to the site i wish to go to i also have this code to allow loading of a new page (but works only AFTER successfully logged in) <script> <!-- location.replace("http://www.mywebsiteexample.com/arms.php"); --> </script> my problem is i dont know how to join the code, whereby i successfully log in, then run the script to go to the subpage my idea is to delay running of the script code perhaps? which should then allow to successfully load the subpage...or perhaps you guys know another way help is DEFINITELY very appreciated! cheers all! If anyone could take the time to answer this then much appreciated, it's pretty easy to read through, the php code is very basic and repeats itself in most places.. To create a CMS in PHP, is the best way to do it to save sections of the html to either say either a db or text file. This seems a bit messy but maybe the best way, for example say i have this html and i want to have a user be able to add more images to their page by just uploading an image and clicking a button ........, HTML Code: <table> <tr> <td> <img src = "i1.jpg" ></td> </tr> </table> Now i could save, HTML Code: <table> <tr> to say text1.txt and HTML Code: </tr> </table> to text2.txt, and the images to say text3.txt, HTML Code: <td> <img src = "i1.jpg" ></td> i could then say something like, PHP Code: <?php $fname = "text1.txt"; $fo = fopen($fname,r); $fr1 = fread($fo,filesize($fname)); fclose($fo); $fname = "text2.txt"; $fo = fopen($fname,r); $fr2 = fread($fo,filesize($fname)); fclose($fo); $fname = "text3.txt"; $fo = fopen($fname,r); $fr3 = fread($fo,filesize($fname)); fclose($fo); $f_final= $fr1.$fr3.$fr2; echo $f_final; ?> This would put the contents of all 3 text files into a single variable $f_final so that all i would need to do if i needed a new image added is add that images html to text3.txt. This seems like a pretty good way of doing things, i assume this is how CMS systems are made pretty much?? So basically i could have a user frontend "addimg.html" which is for adding the image, HTML Code: <form method="post" action ="newimage.php"> <input tpye = "text" name = "img1"> <input type = "submit"> </form> and then a modified version of the above php, PHP Code: <?php //save new image name to text3.txt *********** $newimgge_to_ADD = $_POST["img1"]; $fname = "text3.txt"; $fo = fopen($fname,a); fwrite($fo,"\r\n".'<td> <img src = "'.$newimgge_to_ADD.'.jpg"> </td>'); fclose($fo); //********************** //Open all the text files one by one and save their contents to a variable ***** $fname = "text1.txt"; $fo = fopen($fname,r); $fr1 = fread($fo,filesize($fname)); fclose($fo); $fname = "text2.txt"; $fo = fopen($fname,r); $fr2 = fread($fo,filesize($fname)); fclose($fo); $fname = "text3.txt"; $fo = fopen($fname,r); $fr3 = fread($fo,filesize($fname)); fclose($fo); //****************** //Combine the contents of all 3 varables to one varable f_final ********** $f_final= $fr1.$fr3.$fr2; //********************* //Print out the result ********************* echo $f_final; //************************** ?> This would need a good bit of tweaking but i just want to know if i am on the right tracks.. I'm trying to create a link to a file that is located on my microsoft local server from a web page that is on a UNIX webserver. I'm using Dreamweaver CS5 and IE 8 I've set the link up as file:///M|/folder/folder/file.xlsx Link doesn't work. I've also tried M:\folder\folder\file.xlsx M:/folder/folder/file.xlsx file:///M:\folder\folder\file.xlsx file:///M/folder/folder/file.xlsx file://M/folder/folder/file.xlsx None of these work. What am I doing wrong? Hi: I wish to create a 'blog' that *I* control, and where the blog content would reside on my own Apache Server at my home. Is this reasonable and/or easy to do, OR should I use a commercial blog site (e.g., www.blogger.com) For example, I'd like my visitors to access my site (www.myblogsite.org) and then 'Vent their Spleens' on the subject of interest (which will be Heallthcare in the USA and its prospects for change, and the rantings about 'socialism' on the Fox Channel). Thanks for any guidance. -Mel Smith I'm trying to learn a little bit of html. I've got some basic knowledge now, but I can't figure out one thing. I want to make a button to go to another webpage. How do I add webpages to my website and access them through a button? I'm trying to create a table. And instead of trying to explain it I'll just upload the code in a Notepad file. I wrote TABLE HERE where i want the table. It will be much appreciated if someone could help me. Hi , I have created an announcement box using html and javascript.It can be moved inside the page where ever we want. But along with this feature I need to make it stay on the screen even if people go to other webpages.How can it be possible?Please giv me reply as soon as possible. I am a newbie and need your help creating a webpage displaying names with the address.the height and width of the table should be 120 pixels.The border thickness be 5 pixels,border color red and bkground grey. Pls Help please help me everyone i need a form with: radio buttons - where you can only choose one option some options and a submit button, i can edit it to how i want it. just put 'example' or something where i should put things. Thank you everyone in advance. I would be very greatful. yrag_football@yahoo.co.uk Ok so i've built plenty of general websites using fairly basic html and they've all been pretty successful and people have been pleased but now I need to build an online shop for myself and i'm not 100% I have the know how to do it (but I can't afford to get it done elsewhere so eek I need to try..) Is it safe to create a webshop and integrate a checkout system using plain old html? There is now way to disable source viewing from what I understand... And if so, can anyone suggest a really easy to understand and integrate checkout to go for? This is the point that has really confused and made me a bit unsure if i'm able to do this. There's so many that it would be good to know of a UK one that I shold be able to get to grips with! Thanks |