如何在我的网站上输入数据并自动在其他网站上提交

时间:2016-04-10 18:27:44

标签: javascript php html

我在复制发送免费短信的网站时遇到困难,我希望允许我网站的访问者免费发送短信,以便他们继续访问我的网站,但我没有资金设置一个短信网关,但我找到了一个网站,允许访问他们网站的访问者在全球范围内发送免费短信。

我想在他们的网站上创建所需数据,以便我的网站上的访问者可以发送免费短信。看起来这个服务真的来自我的网站而不知道它是一个复制的服务。

我希望php脚本能够做到这一点,但我不知道这样做但我能够从他们的网站提取一些代码到我的,我尝试发送短信但它不断带我到他们的网站请你看看下面的代码:



[PHP]<div id="main">
		<div align="center">
        <h2>Send Free Online SMS Worldwide</h2>
        <br>
        <table align="center">
  <tbody><tr>
    <td align="left"><big><span style="color: #45c7ee;">●</span></big></td>
    <td align="left"><strong>Send free online SMS</strong> (text messages) to any mobile phone in the <strong>world</strong>!</td>
  </tr>
  <tr>
    <td align="left"><big><span style="color: #45c7ee;">●</span></big></td>
    <td align="left"><strong>No registration required</strong>! Just write your message and send it.</td>
  </tr>
  
<tr>
    <td align="left"><big><span style="color: #45c7ee;">●</span></big></td>
    <td align="left"><strong>Once you send your first SMS (text message)</strong>!  wait for three minutes before sending another SMS.</td>
  </tr>
   <br>
<table align="center">
  <br>

<tbody><tr>
    <td align="left"><small><b>NOTE:</b> Abuse is strictly forbidden. This service is NOT anonymous.</small></td>
  </tr>
  <tr>
    <td align="left"><small>We store all records and co-operate fully with the legal authorities to trace abusive messages to the originator.</small></td>
  </tr>
  <tr>
    <td align="left"><small>Read the <a href="http://www.afrimefinc.co.uk/termofservice">Terms of Service</a> before you send your message.</small></td>
  </tr>
        </tbody></table>
    <form id="smsform" name="form85326947" action="http://www.e-freesms.com/sms.php" method="post">
        <table align="center">
  <tbody><tr>
   
<br>
<br><td align="left"><b>Select country:</b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
    <td align="left"><select name="country85326947" onchange="document.form85326947.countrycode85326947.value = document.form85326947.country85326947.options[document.form85326947.country85326947.selectedIndex].value" style="width: 200px;">
<option selected="selected" value=""></option>
<option value="1">USA ⁄ Canada</option>
<option value="" disabled="disabled">-------------------</option>
<option value="93">Afghanistan</option>
<option value="355">Albania</option>
</select>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(recipient's country)</td>
  </tr>
  <tr>
   <td align="left"><b>Enter number:</b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
    <td align="left">+<input name="countrycode85326947" maxlength="4" readonly="readonly" style="width: 40px;">&nbsp;<input name="number85326947"placeholder="Exclude leading zero"maxlength="20" style="width: 200px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(recipient's phone number)</td>
  </tr>
  <tr>
    <td align="left"><b>Your message:</b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
    <td align="left"><label style="color: black; display: block;" id="limitlbl_0"><br>100 characters remaining</label><textarea limiterid="limitlbl_0" name="message85326947" placeholder="Free Texting by  www.afrimefinc.co.uk" maxlength="100" style="width: 400px; height: 100px;"></textarea></td>
  </tr>
 <tr>
    <td align="left"><b>Captcha code:</b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
    <td align="left"><script type="text/javascript" src="http://www.google.com/recaptcha/api/challenge?k=6LeEoxwTAAAAAE0JzeH5Ch7OxW4adQ6Fj145pwVj"></script>


    <br>
       
<noscript>
  		<iframe src="http://www.google.com/recaptcha/api/noscript?k=6LeEoxwTAAAAAE0JzeH5Ch7OxW4adQ6Fj145pwVj" height="300" width="500" frameborder="0"></iframe><br/>
  		<textarea name="recaptcha_challenge_field" rows="3" cols="40"></textarea>
  		<input type="hidden" name="recaptcha_response_field" value="manual_challenge"/>
	</noscript></td>
  </tr>
        </table>
<br>        <input type="hidden" name="ne45byg98c" value="287w56t4h9d3aqxrkvcgsnb" />
        <input type="image" src="css/images/button-send.png" width="175" height="69" border="0" alt="SEND" />
        </form>
		<script src="js/charcount.js" type="text/javascript"></script>
        [/PHP]
&#13;
&#13;
&#13;

在允许其在其网站上发送短信之前请求的信息是: 国家 数字 消息 4.验证码

我提取的请求信息只有验证码在我的网站上没有正确显示,但所有其他信息都能够显示,但也无法发送短信。

有人请我尝试下面的代码,但我不知道从哪里开始我是否将这两个代码用作两个脚本,以便将其上传到我的cpanel或什么?< / p>

任何人都可以帮我解释一下如何用php解决这个问题吗?

&#13;
&#13;
output page(http://www.e-freesms.com/sms.php):

    <?php
    if ($_SERVER[REQUEST_METHOD] == "post") {
    echo "your country: $_POST[Select_Country]";
    echo "the number: $_POST[Enter_Number]";
    echo "your message: $_POST[Your_Message]";
    echo "the captcha: $_POST[Captcha_code]";
    }
    ?>

 
Server-side    

<?php
    if ($_SERVER['REQUEST_METHOD'] == "post") {
    echo "welcome $post[name] to my country!";
    } else {
    echo "welcome $get[name] to my country!";  }
    ?>
&#13;
&#13;
&#13;

我期待着听到你们的意见。

0 个答案:

没有答案