formulaire de vote sur le web

Télémac

Membre expert
Club iGen
1 Février 2001
2 967
35
xplanepilotecontrole.nexgate.ch
Bonjour

je souhaite faite voter 25 personnes qui doivent sélectionner 24 jpeg sur 96 photos

les 24 ayant le plus de vote favorables seront sélectionnées.

quelqu'un aurait une idée très très simple pour mettre sur un site web un formulaire de vote et une possibilité de comptabilisation à mettre en place en moins de 1 minute et en 3 clics de souris?


Merci les spécialistes de la question
 
Télémac a dit:
Bonjour

je souhaite faite voter 25 personnes qui doivent sélectionner 24 jpeg sur 96 photos

les 24 ayant le plus de vote favorables seront sélectionnées.

quelqu'un aurait une idée très très simple pour mettre sur un site web un formulaire de vote et une possibilité de comptabilisation à mettre en place en moins de 1 minute et en 3 clics de souris?


Merci les spécialistes de la question

points de vue compatibilité, je ne pense pas qu'il y ait de problème si c'est du web, ça n'ira pas chercher plus loin que le php, par contre, je ne sais pas si tu peux faire ça en 3 clics :D
 
j'ai repris un vielle page tu a juste à changer ce qui est en rouge souligné italique ...

au finiche ça donne ça : http://perso.wanadoo.fr/famille.mpacoc/siteantoine/page2.html

il y a beaucoup de chose qui ne servent à rien tu peux l'enlever si t'as le courage, :D :D


<html>
<head>
<title>page2</title>
</head>
<body style="background-color: rgb(255, 255, 255);">
<big><big><br>
</big></big>
<div style="text-align: center;">
<table style="width: 100%; text-align: left;" border="1"
cellpadding="2" cellspacing="2">
<tbody>
<tr>
<td style="vertical-align: top;"><big
style="color: rgb(51, 51, 255);"><br>
</big>
<form target="_self" enctype="multipart/form-data"
action="mailto:adresse email" method="post">
<div style="text-align: center;"> <span
style="font-style: italic;"><span
style="font-weight: bold;"><img
style="width: 400px; height: 434px;" alt=""
src="http://www.noao.edu/image_gallery/images/d2/02188a.jpg"><br>
<br>
</span></span><input name="image1"
type="radio"><span style="font-style: italic;"><span
style="font-weight: bold;"><br>
<br>
</span></span>
<hr style="width: 100%; height: 2px;"><span
style="font-style: italic;"><span
style="font-weight: bold;"><img alt=""
src="http://umbra.nascom.nasa.gov/eit/images/eclipse/williams/Williams_College_wl.jpg"><br>
<br>
</span></span><input name="image2"
type="radio"><br>
<span style="font-style: italic;"><span
style="font-weight: bold;"><br>
</span></span></div>
<div style="text-align: center;"><small><span
style="text-decoration: underline; color: rgb(204, 51, 204);"></span></small>
<hr style="width: 100%; height: 2px;"></div>
<h3 style="text-align: center; font-style: italic;">
<div style="text-align: center; font-style: italic;">
<h3 style="font-style: italic; text-align: left;"><small><small><small><small><small><small><small><font
="4"><b><b><big><big><big><big><big><big><big><big><b><b><b><b><b><b><b><b><b><b><b><b><b><b><font
="4"><b><b><small><small><small><small><small><small><small><small><font
="4"><b><b><big><big><big><big><big><big><big><big><font
="4"><b><b><small><small>&nbsp;</small></small></b>
<script language="javascript">"Le premier bouton radio est sélectionné : " + document.form1.radio1[0].checked + "<br/>");
document.write("Le deuxième bouton radio est sélectionné : " + document.form1.radio1[1].checked + "<br/>");
document.write("Nom de ce bouton radio : " + document.form1.radio1[0].name + "<br/>");
document.write("Longueur de ce groupe de boutons radio : " + document.form1.radio1.length + "<br/>")</script></b></font></big></big></big></big></big></big></big></big></b></b></font></small></small></small></small></small></small><font
="4"><b><b><big><big><font ="4"><b><b><b><b><b><b><b><b><b><b><b><b><b><b><b><font
="4"><b><b><big><big><big><big><big><big><big><big><b><b><font
="4"><b><b><b><b><b><b><b><b><b><b><b><b><b><small><big><big><big><big><small><input
value="valider" type="submit"></small></big></big></big></big></small></b></b></b></b></b></b></b></b></b></b></b></b></b></font></b></b></big></big></big></big></big></big></big></big></b></b></font></b></b></b></b></b></b></b></b></b></b></b></b></b></b></b></font></big></big></b></b></font></small></small></b></b></font></b></b></b></b></b></b></b></b></b></b></b></b></b></b></big></big></big></big></big></big></big></big></b></b></font></small></small></small></small></small></small></small></h3>
</div>
</h3>
<div style="text-align: center;">
<div style="text-align: left;"><small><small><small><small><small><small><small><font
="4"><b><b><big><big><big><big><big><big><big><big><b><b><b><b><b><b><b><b><b><b><b><b><b><b><font
="4"><b><b><small><small><font
="4"><b><b><big><big><font ="4"><b><b><b><b><b><b><b><b><b><b><b><b><b><b><b><font
="4"><b><b><big><big><big><big><big><big><big><big><b><b><font
="4"><b><b><b><b><b><b><b><b><b><b><b><b><b><small><big><big><big><big><small><small><small><font
="4"><big> <small><font ="4"><b
=""><small><b><input type="reset"></b></small></b></font></small><small><font
="4"><b =""><b><br>
<small><font ="4"><big> </big></font></small></b></b></font></small></big></font></small></small></small></big></big></big></big></small></b></b></b></b></b></b></b></b></b></b></b></b></b></font></b></b></big></big></big></big></big></big></big></big></b></b></font></b></b></b></b></b></b></b></b></b></b></b></b></b></b></b></font></big></big></b></b></font></small></small></b></b></font></b></b></b></b></b></b></b></b></b></b></b></b></b></b></big></big></big></big></big></big></big></big></b></b></font></small></small></small></small></small></small></small></div>
</div>
</form>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>
 
<html>
<head>
<title>page2</title>
</head>
<body style="background-color: rgb(255, 255, 255);">
<big><big><br>
</big></big>
<div style="text-align: center;">
<table style="width: 100%; text-align: left;" border="1"
cellpadding="2" cellspacing="2">
<tbody>
<tr>
<td style="vertical-align: top;"><big
style="color: rgb(51, 51, 255);"><br>
</big>
<form target="_self" enctype="multipart/form-data"
action="mailto:test@example.com" method="post">
<div style="text-align: center;"><span
style="font-style: italic;"><span
style="font-weight: bold;"><br>
</span></span><span style="font-style: italic;"><span
style="font-weight: bold;">
<img style="width: 400px; height: 434px;" alt=""
src="http://www.noao.edu/image_gallery/images/d2/02188a.jpg"><br>
<br>
</span></span><input name="image0"
type="radio"><span style="font-style: italic;"><span
style="font-weight: bold;"><br>
</span></span><br>
<span style="font-style: italic;"><span
style="font-weight: bold;"><br>
</span></span>
<hr style="width: 100%; height: 2px;"><img
style="width: 400px; height: 434px;" alt=""
src="http://www.noao.edu/image_gallery/images/d2/02188a.jpg"><br>
<br>
<input name="image1" type="radio"><span
style="font-style: italic;"><span
style="font-weight: bold;"><br>
</span></span><br>
<span style="font-style: italic;"><span
style="font-weight: bold;"><br>
</span></span>
<hr style="width: 100%; height: 2px;"><span
style="font-style: italic;"><span
style="font-weight: bold;"><br>
<img style="width: 400px; height: 434px;" alt=""
src="http://www.noao.edu/image_gallery/images/d2/02188a.jpg"><br>
<br>
</span></span><input name="image2"
type="radio"><span style="font-style: italic;"><span
style="font-weight: bold;"><br>
<br>
</span></span>
<hr style="width: 100%; height: 2px;"><span
style="font-style: italic;"><span
style="font-weight: bold;"><img alt=""
src="http://umbra.nascom.nasa.gov/eit/images/eclipse/williams/Williams_College_wl.jpg"><br>
<br>
</span></span><input name="image3"
type="radio"><br>
<span style="font-style: italic;"><span
style="font-weight: bold;"><br>
</span></span>
</div>
<div style="text-align: center;"><small><span
style="text-decoration: underline; color: rgb(204, 51, 204);"></span></small>
<hr style="width: 100%; height: 2px;">

:D

</div>
<h3 style="text-align: center; font-style: italic;">
<div style="text-align: center; font-style: italic;">
<h3 style="font-style: italic; text-align: left;">&nbsp;
<script language="javascript">"Le premier bouton radio est sélectionné : " + document.form1.radio1[0].checked + "<br/>");
document.write("Le deuxième bouton radio est sélectionné : " + document.form1.radio1[1].checked + "<br/>");
document.write("Nom de ce bouton radio : " + document.form1.radio1[0].name + "<br/>");
document.write("Longueur de ce groupe de boutons radio : " + document.form1.radio1.length + "<br/>")</script>
<input value="valider" type="submit"></h3>
</div>
</h3>
<div style="text-align: center;">
<div style="text-align: left;"><small><small><small><small><small><small><small><font
="4"><b><b><big><big><big><big><big><big><big><big><b><b><b><b><b><b><b><b><b><b><b><b><b><b><font
="4"><b><b><small><small><font
="4"><b><b><big><big><font ="4"><b><b><b><b><b><b><b><b><b><b><b><b><b><b><b><font
="4"><b><b><big><big><big><big><big><big><big><big><b><b><font
="4"><b><b><b><b><b><b><b><b><b><b><b><b><b><small><big><big><big><big><small><small><small><font
="4"><big> <small><font ="4"><b
=""><small><b><input type="reset"></b></small></b></font></small><small><font
="4"><b =""><b><br>
</b></b></font></small></big></font></small></small></small></big></big></big></big></small></b></b></b></b></b></b></b></b>
</b></b></b></b></b></font></b></b></big></big></big></big></big></big></big></big></b></b></font></b></b></b></b></b></b></b>
</b></b></b></b></b></b></b></b></font></big></big></b></b></font></small></small></b></b></font></b></b></b></b></b></b></b></b>
</b></b></b></b></b></b></big></big></big></big></big></big></big></big></b></b></font></small></small></small></small></small>
</small></small></div>
</div>
</form>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>

il te suffit de rajouter çà :

<img style="width: 400px; height: 434px;" alt=""
src="http://www.noao.edu/image_gallery/images/d2/02188a.jpg"><br>
<br>
</span></span><input name="image2"
type="radio"><span style="font-style: italic;"><span
style="font-weight: bold;"><br>
<br>
</span></span>
<hr style="width: 100%; height: 2px;">

à la place du smylies en changeant le nom image2 par le numéro et l'adresse de l'image
 
en appuyant sur valider s'ouvre émail pour expédier un émail de vote

c'est bien

mais ensuite j'en fais quoi?

25 vote à 24 photos tout récupérer à la main?


y a pas un truc de formulaire excell ou on met une croix qui vaut 1
une fois validé, le formiulaire est expédié par émail

et j'importe dans un tableau excel qui calcul le tout?
 
il est évident qu'avec une base de donnée cela fonctionne mieux

mes connaissances web se limite à nvu, interface graphic souris et cela suffit pour ce que j'en fais.

chacun son métier et ses loisirs

je pensais trouver un truc tout prêt pour les neus-neus dans mon cas mais il semblerait que non

en attendant

j'ai téléchargé et installé mamp 1,2,1

j'ai glissé dans le dossie hddoc de mamp tout mon site

j'ai téléchargé, installé et glissé l'appli "PHP Photo Vote 1.3F" dans le dossier hddoc avec les dossiers de mon site

mais maintenant?

sait plus

je mets où mes images et je fais comment pour les mettres en ligne pour le vote

merci si quelqu'un peut me donner la marche à suivre pour ce truc, c'est béaticien pour ceux qui savent mais pour les autres la doc n'est pas claire surtout si on ne parle pas anglais
 
si les read me en plus expliquent mal

si je comprends bien après décompression
"Modify the following files as needed :
(dbconnect.inc.php) : Required
(var.inc.php):Required

je fais les modifications?

si je change le nom de fichiers j'aurai c'est deux fois le même nom donc pas accepté?
merci
 
j'en suis arrivé la mais maintenant je bloque vraiment

comment faire la base?

avec mamp et safari je n'arrive pas au sous dossier DB qui se trouve

http://localhost:8888/mamp/htdocs/FreeGPL-13F/db
cela me donne une page blanche

safari m'affiche Not found avec l'url

http://localhost8888/mamp/htdocs
et
http://localhost:8888/mamp/

pour arriver dans le dossier DB de photovote 'freeGPL-13"

il faut que je sorte le dossier db du dossier freeGPL -13"

le placee a coté du dossier freeGPL -13

dans le dossier htdocs de mamp
voici la fenêtre d'installation avec ce message

Before going on be sure that you have seen file dump.sql uploaded in this folder, or nothing will be created.
Available syntax: ?db=your_database_name&file=dump_file_name
If you plan to use an existing database, be noted that the action may erase all the old data that were input within the database.


il parle de quel dossier?


je n'arrive pas à créer la base Photovote ( j'ai cru que c'était un machin tout prèt)


personne est arrivé à faire fonctionner ce truc.

je suis vraiment dans la moïse et mardi le vote doit fonctionner

merci por l'aide
 
  • J’aime
Réactions: tantoillane
je vais regarder si j'ai le temps de jeter un coup d'&#339;il sur tout ton truc, mais pour l'instant je ne comprend ....rien


tu as toujours la possibilitée d'utiliser ma technique, en nomant tes images par des numéros ( image1 ....) , avant de la publier sur le serveur de ton FAI, tu aura aucun problème d'organisation et la manip ne sera pas si longue, ce sera un peu plus laborieux pour récupérer les résultats un à un, mais je n'ai rien d'autre pour l'instant ...
 
merci tantoillane

ormalement phpphotovote est une petote appli en php qui permet de voter, intègre la base de donnée et e compteur pour les photos

cela ressemble à cela

http://www.ecomstudio.net/sales/#23

le résultat pour 96 jpegs x 25 votants à la main c'est long et source d'erreur

donc j'ai installé mamp sur mon mac

installé php photo vote

mais je rencontre le problèmes évoqué déjà à l'installation

j'ai vu des sites qui fonctionnent bien avec cette appli php photovote

j'ai regardé partout pour trouver une solution concurrente à phpphotovote mais que neni