SendSMS

noway0815

Neuer User
Mitglied seit
12 Mai 2006
Beiträge
117
Punkte für Reaktionen
0
Punkte
16
hi,
ich wollte verschiedene accounts nutzen um SMS zu senden, so habe ich das hier mit ach un krach zusammen gebastelt... geht aber auch nicht.

<html>
<body>
<form name="Send">
Select provider<br/>
<select name="provider">
<option value="https://myaccount.CallEasy.com/clx/sendsms.php" method="get"> CallEasy</option>
<option value="https://myaccount.voipdiscount.com/clx/sendsms.php" method="get"> voipdiscount</option>
<option value="https://myaccount.12voip.com/clx/sendsms.php" method="get"> 12voip</option>
<option value="https://myaccount.sparvoip.de/clx/sendsms.php" method="get"> sparvoip</option>
<option value="https://myaccount.lowratevoip.com/clx/sendsms.php" method="get"> lowratevoip</option>
<option value="https://myaccount.VoipCheap.com/clx/sendsms.php" method="get"> VoipCheap</option>
<option value="https://myaccount.voipbuster.com/clx/sendsms.php" method="get"> voipbuster</option>
<option value="https://myaccount.voipbusterPRO.com/clx/sendsms.php" method="get"> voipbusterPRO</option>
<option value="https://myaccount.sipdiscount.com/clx/sendsms.php" method="get"> sipdiscount</option>
<option value="https://myaccount.FreeCall.de/clx/sendsms.php" method="get"> FreeCall</option>
</select ><br/>

username<br/>
<input name="username" size="27" /><br/>
password<br/>
<input name="password" size="27" />
<input name="from" type="hidden" value="123" /><br/>
TelfonNr<br/>
<input name="to" size="27" /><br />
Message<br/>
<textarea name="text" cols="40" rows="10"/></textarea><br/>
<input type="button" value="Send" onClick="document.location=document.Send.provider.options[document.Send.provider.selectedIndex].value">
</form>
</body>
</html>

also, die experten sind gefragt.

Grusse
Noway
 
Sind die experten alle im Urlaub?! =)
 
womit senden ??

<input type="button" value="Send" onClick="document.location=document.Send.provider. options[document.Send.provider.selectedIndex].value">
 
HTML:
<html>
    <body>
        <form name="to">
            Select provider<br />
            <select name="provider">
                <option value="https://myaccount.CallEasy.com/clx/sendsms.php" method="get"> CallEasy</option>
                <option value="https://myaccount.voipdiscount.com/clx/sendsms.php" method="get"> voipdiscount</option>
                <option value="https://myaccount.12voip.com/clx/sendsms.php" method="get"> 12voip</option>
                <option value="https://myaccount.sparvoip.de/clx/sendsms.php" method="get"> sparvoip</option>
                <option value="https://myaccount.lowratevoip.com/clx/sendsms.php" method="get"> lowratevoip</option>
                <option value="https://myaccount.VoipCheap.com/clx/sendsms.php" method="get"> VoipCheap</option>
                <option value="https://myaccount.voipbuster.com/clx/sendsms.php" method="get"> voipbuster</option>
                <option value="https://myaccount.voipbusterPRO.com/clx/sendsms.php" method="get"> voipbusterPRO</option>
                <option value="https://myaccount.sipdiscount.com/clx/sendsms.php" method="get"> sipdiscount</option>
                <option value="https://myaccount.FreeCall.de/clx/sendsms.php" method="get"> FreeCall</option>
            </select ><br />
        </form>
        <form name="Send" method="get">
            username<br />
            <input name="username" size="27" /><br /><br />
            password<br />
            <input type="password" name="password" size="27" /><br /><br />
            username or verified phonenumber<br />
            <input name="from" /><br /><br />
            TelfonNr<br/>
            <input name="to" size="27" /><br /><br />
            Message<br/>
            <textarea name="text" cols="40" rows="10"/></textarea><br />
            <input type="button" value="Send" onClick="document.Send.action=document.to.provider.options[document.to.provider.selectedIndex].value;document.Send.submit();">
        </form>
    </body>
</html>

Dein größter Fehler war im "onClick=....." teil. Dort hast du nicht das Formular abgeschickt sondern bist einfach nur auf die entsprechende Seite des Providers gegangen....
 
vielen dank an euch. ich benutze diesen script momentan.

wie kann ich user/pass automatisch auswählen, bzw eintragen lassen, wenn ich einen provider wähle, so dass man es nicht jedesmal eingeben muss?
 
Willst Du wirklich für unterschiedliche Provider automatisch unterschiedliche Benutzer eintragen?
Das geht, ist aber wahrscheinlich gar nicht nötig.

Ein einfaches, automatisches Ausfüllen der Felder geht ganz simple mit 'value="blabla"'

Also:
HTML:
  <input name="username" size="27" value="Name hier vorgeben" /><br /><br />
            password<br />
            <input type="password" name="password" size="27" value="PW im Klartext eintragen" /><br /><br />
            username or verified phonenumber<br />
            <input name="from" value="verwendete Absender Nr." /><br /><br />

Nun steht natürlich dein Password gut lesbar im HTML-File.
 
Holen Sie sich 3CX - völlig kostenlos!
Verbinden Sie Ihr Team und Ihre Kunden Telefonie Livechat Videokonferenzen

Gehostet oder selbst-verwaltet. Für bis zu 10 Nutzer dauerhaft kostenlos. Keine Kreditkartendetails erforderlich. Ohne Risiko testen.

3CX
Für diese E-Mail-Adresse besteht bereits ein 3CX-Konto. Sie werden zum Kundenportal weitergeleitet, wo Sie sich anmelden oder Ihr Passwort zurücksetzen können, falls Sie dieses vergessen haben.

IPPF im Überblick

Neueste Beiträge