Bonjour,
je dois créer une appli permettant, avec l'API d'Orange, d'envoyer des MMS
Orange me fourni un formulaire html, mais avec celui ci , je ne peux envoyer qu'n seul MMS à la fois
apparemment, il faudrait utiliser cURL pour parvenir à mes besoin, mais je ne comprends pas tout
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
| <form name="prod" action="http://run.orangeapi.com/mms/sendMMS.xml?id=<?php echo $accesskey; ?>" target="_blank" method="post" enctype="multipart/form-data">
<table cellpadding="3" cellspacing="0" border="0">
<tr>
<td width="80"><b>From :</b></td>
<td>
<select name="from">
<option value="20345">20345 (Orange France)</option>
<option value="38100">38100 (multi-opérateur France)</option>
</select>
</td>
</tr>
<tr>
<td><b>To :</b></td>
<td><input name="to" type="text" size="30" value="" style="font-family:Arial, Helvetica, sans-serif; font-size:12px"></td>
</tr>
<tr>
<td><b>Subject :</b></td>
<td><input name="subject" id="subject" type="text" size="30" value="" style="font-family:Arial, Helvetica, sans-serif; font-size:12px" class="descr_add_site_annuaire" /> <script>displaylimit("subject","subject",40)</script></td>
</tr>
<tr>
<td><b>Content :</b></td>
<td><textarea name="content" id="content" cols="60" rows="5" style="font-family:Arial, Helvetica, sans-serif; font-size:12px"></textarea></td>
</tr>
<tr>
<td colspan="2" height="10"> </td>
</tr>
<tr>
<td><b>Image :</b></td>
<td><input name="image" type="file" size="40"></td>
</tr>
<tr>
<td><b>Sound :</b></td>
<td><input name="sound" type="file" size="40"></td>
</tr>
<tr>
<td><b>Video :</b></td>
<td><input name="video" type="file" size="40"></td>
</tr>
<tr>
<td colspan="2" align="right"><input type="reset" value="Effacer">
<input type="submit" name="Submit" value="Valider" />
</td>
</tr>
</table>
</form> |
Voilà ce que me fournit orange, mais j'aimerais donc récupérer les données et les envoyer comme ceci
http://run.orangeapi.com/mms/sendMMS.xml?id=".$id."&from=".$from."&to=".$to."&subject=".$sujet."&content=".$contenu;
pour les textes ça va, mais comment envoyer des fichiers?
merci d'avance
Partager