bonjour donc voila je me pose quelque question je voudrais réalisé un script instant gagnant avec paypal , ou allopass ou autre system mais le probleme c'est que je ne c'est pas comment mie prendre pour intégré mon programme allopass donc voicie ma source qui va generé 1 gagnant tout les 10 appel
code php de ma page instant.php
<?php
if (isset($_POST['code']) AND !empty($_POST['code']))
{
//Verification de code valide(je ne sais pas le faire je te le laisse)
$aleatoire = mt_rand(1,10);
if ($aleatoire == 1)
{
echo 'vous avez gagné 5€ félicitation ';
}
else
{
echo 'Vous avez perdu retentez votre chance !!';
}
}
else
{
?>
Merci de marquer votre code :
<form method="post">
<label>Code : <input type="text" </form>
<?php
}
?>
et voicie ma source du code allopass que j'aimerai intégré a mon script
<tableborder="0"cellpadding="0"cellspacing="0"width="300"style="border-color:black">
<tr>
<tdwidth="300"height="25"bgcolor="#FFFFFF"align="center"valign="top">
<imgsrc="http://www.allopass.com/imgweb/script/fr_uk/acces_title.jpg"width="300"height="25"alt="Logo"/> </td>
</tr>
<tr>
<tdwidth="300"bgcolor="#FFFFFF"align="right"valign="top">
<imgsrc="http://www.allopass.com/imgweb/script/fr_uk/acces_left.jpg"width="79"height="29"alt=""style="float:left"/>
<ahref="javascript:;"onclick="javascript:window.open('http://www.allopass.com/show_accessv2.php4?CODE_PAYS=fr&SITE_ID=86236&DOC_ID=223313&LG=fr','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=340');"><imgborder="0"src="http://www.allopass.com/imgweb/common/flag_fr.gif"width="35"height="29"alt=""/></a>
<ahref="javascript:;"onclick="javascript:window.open('http://www.allopass.com/show_accessv2.php4?CODE_PAYS=be&SITE_ID=86236&DOC_ID=223313&LG=fr','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=340');"><imgborder="0"src="http://www.allopass.com/imgweb/common/flag_be.gif"width="35"height="29"alt=""/></a>
<ahref="javascript:;"onclick="javascript:window.open('http://www.allopass.com/show_accessv2.php4?CODE_PAYS=ch&SITE_ID=86236&DOC_ID=223313&LG=fr','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=340');"><imgborder="0"src="http://www.allopass.com/imgweb/common/flag_ch.gif"width="35"height="29"alt=""/></a>
<ahref="javascript:;"onclick="javascript:window.open('http://www.allopass.com/show_accessv2.php4?CODE_PAYS=lu&SITE_ID=86236&DOC_ID=223313&LG=fr','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=340');"><imgborder="0"src="http://www.allopass.com/imgweb/common/flag_lu.gif"width="35"height="29"alt=""/></a>
<ahref="javascript:;"onclick="javascript:window.open('http://www.allopass.com/show_accessv2.php4?CODE_PAYS=de&SITE_ID=86236&DOC_ID=223313&LG=fr','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=340');"><imgborder="0"src="http://www.allopass.com/imgweb/common/flag_de.gif"width="35"height="29"alt=""/></a> </td>
</tr>
<tr>
<tdwidth="300"bgcolor="#FFFFFF"valign="top"align="center">
<divstyle="font-family:Arial,Helvetica,sans-serif;font-size:10px;color:#000">
<strong>Entrer votre code d'accès - Entrer votre code d'accès</strong>
<formname="APform"action="http://www.allopass.com/check/index.php4"method="post">
<inputtype="hidden"name="SITE_ID"value="86236"/>
<inputtype="hidden"name="DOC_ID"value="223313"/>
<inputtype="hidden"name="LG_SCRIPT"value="fr_uk"/><inputtype="text"size="8"maxlength="10"value=""name="CODE0"style="background-color: #E7E7E7; border-bottom: 1px solid #000080; border-left: #000080 1px solid; border-right: #000080 1px solid; border-top: #000080 1px solid; color: #000080; cursor: text; font-family: Arial; font-size: 10pt; font-weight: bold; letter-spacing: normal; width: 70px; text-align: center;"><br/>
<inputtype="button"name="APsub"value=""onclick=" this.form.submit();this.form.APsub.disabled=true;"style="border:0px;margin:0px;padding:0px;width:48px;height:18px;background:url('http://www.allopass.com/imgweb/common/bt_ok.gif');"/><br/>
</form>
<tableborder="0"width="300"cellpadding="0"cellspacing="0">
<tr>
<tdalign="center"bgcolor="#FFFFFF">
<ahref="#null"onclick="window.open('https://secure.allopass.com/show_ccard.php4?LG=UK&SITE_ID=86236&DOC_ID=223313','ccard','toolbar=0,location=0,directories=0,status=1,scrollbars=1,resizable=1,copyhistory=0,menuBar=0,width=550,height=575');">
<imgsrc="http://www.allopass.com/imgweb/script/fr_uk/achat_cc.jpg"border="0"alt="If your country is not listed, click here"></a></td>
</tr>
</table>
Pour connaître notre solution de micro paiement : <ahref="http://www.allopass.com"target="_blank">Allopass</a> </div> </td>
</tr>
</table>
Donc voila c'est un script d'instant gagnant que je essayé de réalise 1 gagnant tout les 10 appel merci de votre aide