【发布时间】:2018-12-22 19:20:57
【问题描述】:
我正在开发一个关于教育成绩的网站,我的访问者可以在其中通过输入他们的卷号来查看不同的教育机构的成绩。问题是当我的访问者单击提交按钮时,他/她会重定向到研究所的网页,在那里他/她可以找到他/她的结果。我想在我的网站上显示结果。当访问者单击提交按钮时,我提交给外部网站的表单会从他们的数据库中抓取数据并显示回我的网页。
我尝试了以下代码: 您可以查看此页面以更好地了解我的问题: http://www.results.doyouknow.com.pk/5th-class-results-online/
<form id="result_form" class="form account-form" action="http://results.pec.edu.pk/" method="POST" target="_blank">
<h1 style="font-size: 28px;">5th Class Result 2019</h1>
<p style="clear: both; font-weight: bold; width: 100%; line-height: 40px;">Enter Grade 5 Roll No</p>
<div style="width: 100%;">
<div style="width: 23%; float: left;"><input id="roll_no" class="form-control" tabindex="" maxlength="2" name="roll_no1" type="number" placeholder="00" /></div>
<div style="width: 23%; float: left;"><input id="roll_no" class="form-control" tabindex="" maxlength="3" name="roll_no2" type="number" placeholder="000" /></div>
<div style="width: 23%; float: left;"><input id="roll_no" class="form-control" tabindex="" maxlength="3" name="roll_no3" type="number" placeholder="000" /></div>
<div style="width: 23%; float: left;"><button class="button-5th" name="search">Search</button></div>
<div style="clear: both;"></div>
</div>
</form>
我想向结果网站提交表单值,从他们的数据库中抓取数据并将其显示回我的网站。
【问题讨论】:
-
这里根据使用的标签唯一的代码是“html”。
标签: javascript php html wordpress