لن أطيل عليكم هدا هو الكود
كود PHP
لكن هدا الكود يحتاج لشيء
واحد لكي يعمل وهو كترة الردود ها ها... فهل من مشجع.....
<!-- Debut Formulaire - Envoie SMS -->
******** ********="**********">
var win=null;
function openfenetre(mypage,myname,w,h,scroll,pos)
{
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',********=no,directories=no,status=yes,menubar=no,toolbar=no,resizable=yes';
win=********open(mypage,myname,settings);
}
function valide_button()
{
openfenetre('http://www.mobileparadise.net/sms/chargement.htm','windwossms','769','550','yes','center');
document.mobsms.submit();
}
***********
<head>
<style>
.inputsms
{
BACKGROUND-COLOR: #3272A4;
border-color:#038dd5;
FONT-FAMILY: Verdana;
FONT-SIZE: 12px;
COLOR: #FFFFFF;
}
</style>
<form ACTION="http://www.mobileparadise.net/sms/sender.php" NAME="mobsms" method="POST" target="windwossms">
<input type="hidden" name="********" value="fr">
<input type="hidden" name="timezone" value="2">
******** ********="**********">
var max_length = 160;
function update_carac()
{
fm = document.forms['mobsms'];
current_total_length = fm.msg.value.length;
new_size = max_length;
if (fm.mynameis.value.length > 0)
{
current_total_length += fm.mynameis.value.length + 1;
new_size -= fm.mynameis.value.length + 1;
}
if (current_total_length > max_length)
{
current_total_length = max_length;
fm.msg.value = fm.msg.value.substr(0, new_size);
}
fm.caractere.value = current_total_length;
}
***********
</head>
<center>
<table border="1" width="385" height="450" bgcolor="#FFFFFF" style="border-collapse: collapse">
<td colspan="3" align="center"><b><font size="2" face="Arial" color="#000000">Envoi de SMS Gratuit
www.rbista.on.ma</font></b></td> </tr>
<tr>
<td align="center" colspan="3"><font size="1"><br></font></td>
</tr>
<tr>
<td width="45%" align="center"><b><font size="1" face="Verdana" color="#000000">Destinataire</font></b></td>
<td width="55%" align="left"><input TYPE="text" NAME="to" SIZE="22" value="" maxLength="17" class="inputsms"></td>
</tr>
<tr>
<td align="center" colspan="3"><font size="1"><br></font></td>
</tr>
<tr>
<td width="50%" align="center"><b><font size="1" face="Verdana" color="#000000">Votre Message</font></b></td>
<td width="50%" align="left" colspan="2"><font size="1"> </font></td>
</tr>
<tr>
<td align="center" colspan="3"><textarea name="msg" rows="7" cols="39" onkeydown="update_carac()" onkeyup="update_carac()" onchange="update_carac()" maxLength="160" class="inputsms"></textarea></td>
</tr>
<tr>
<td width="80%" align="right" colspan="2"><b><font size="1" face="Verdana" color="#000000">Nombre de caractères</font></b></td>
<td width="20%" align="left"><input name="caractere" size="4" maxLength="3" class="inputsms" readonly></td>
</tr>
<tr>
<td width="45%" align="center"><b><font size="1" face="Verdana" color="#000000">Votre Nom</font></b></td>
<td width="55%" align="left" colspan="2"><input name="mynameis" size="22" maxLength="12" class="inputsms" onkeydown="update_carac()" onkeyup="update_carac()" maxLength="12" onchange="update_carac()"></td>
</tr>
<tr>
<td width="45%" align="center"><b><font size="1" color="#000000" face="Verdana">Expéditeur</font></b></td>
<td width="55%" align="left" colspan="2"><input name="from" size="22" maxLength="17" class="inputsms"></td>
</tr>
<tr>
<td align="center" colspan="3"><font size="1"><br></font></td>
</tr>
<tr>
<td width="45%" align="center"><font size="1"> </font></td>
<td width="55%" align="left" colspan="2"><a href="#SEND" title="Envoyer le SMS" onclick="valide_button();"><img border="0" src="http://www.mobileparadise.net/sms/sms_send.gif" width="76" height="18"></a><a href="#Aide" title="Voir l'Aide (Comment Envoyer des SMS...)" onclick="openfenetre('aide.php','mbaide','700','569','yes','center');"><img border="0" src="http://www.mobileparadise.net/sms/sms_aide.gif" width="76" height="18"></a></td>
</tr>
<tr>
<td align="left" colspan="3"><font size="1" face="Verdana"> <input type="checkbox" name="directsend" value="1"> Envoi sans confirmation du SMS.<br> <input type="checkbox" name="charte" value="oui" checked> J'ai lu et J'accepte la <a target="_blank" href="/sms/index.php">Charte</a> de MobileParadise.</font></td>
</tr>
<tr>
<td align="center" colspan="3"><font size="1"><br></font></td>
</tr>
<tr>
<td align="center" colspan="3"><font size="1" face="Verdana"> </font></td>
</tr>
</table>
</td>
</tr>
</table>
******** ********="**********">update_carac();***********
</center>
</form>
<!-- Fin Formulaire - Envoie SMS -->
الردود من فضلكم