将值传递给 PHP 脚本!获取还是发布?

问题描述 投票:0回答:1
<div class="bg-img">
    <form method="POST" action="https://click2call.aosystemsgroup.com/wcb.php">
        <div class="input-container">
            <span class="material-icons icon" style="font-size: 14px; background: rgb(22,58,130); background: linear-gradient(0deg, rgba(22,58,130,1) 30%, rgba(112,172,222,1) 70%)">call</span>
            <input type="text" class="input-field" name="num" placeholder="Phone Number:" id="webcallbackinput" onkeydown="javascript:backspacerDOWN(this,event);" onkeyup="javascript:backspacerUP(this,event);" value=""/>
            <input type="hidden" id="dest" value="http://click2call.aosystemsgroup.com/wcb.php"/>
            <input type="hidden" id="i" value="1"/>
            <input type="image" height="37" src="images/c2c_button.png" width="145" style="  position: relative; left: 8px; top: 145px" alt="submit"/>
        </div>
    </form>

朋友们,我需要将两个值传递给位于远程服务器的 php 脚本。只是为了确保我理解这一点:

我只想传递:1.目标位置(dest),2.“num”(电话号码)xxxxxxxxxx和ID(可能会在sql条目中命中一行。

我这样做正确吗?

javascript java php forms
1个回答
0
投票
<div class="bg-img">
<form method="POST" action="https://click2call.aosystemsgroup.com/wcb.php">
<div class="input-container">
    <span class="material-icons icon" style="font-size: 14px; background: rgb(22,58,130); background: linear-gradient(0deg, rgba(22,58,130,1) 30%, rgba(112,172,222,1) 70%)">call</span>
    <input type="text" class="input-field" name="num" placeholder="Phone Number:" id="webcallbackinput" onkeydown="javascript:backspacerDOWN(this,event);" onkeyup="javascript:backspacerUP(this,event);" value=""/>
    <input type="hidden" id="dest" value="http://click2call.aosystemsgroup.com/wcb.php"/>
    <input type="hidden" id="i" value="1"/>
    <input type="image" height="37" src="images/c2c_button.png" width="145" style="  position: relative; left: 8px; top: 145px" alt="submit"/>
</div>
</form>
© www.soinside.com 2019 - 2024. All rights reserved.