简体   繁体   English

使用html从另一个网站获取结果

[英]Fetching result from another website using html

I have created a simple page with 3 text boxes and three check boxes in it. 我创建了一个简单的页面,其中包含3个文本框和3个复选框。 What I actually want to do is; 我真正想做的是 Now consider that we have a student data page called "A" and the page I have created is "B". 现在考虑我们有一个名为“ A”的学生数据页面,而我创建的页面为“ B”。

Assume that I entered the first name and last name in "B"(which is the page we are going to create); 假设我在“ B”(这是我们要创建的页面)中输入了名字和姓氏; the first name and last name should be taken to page "A"(site from where we want result. It should be auto-filled and once the result come(I actually mean when the next page opens). a screenshot of the page should be taken and saved in a particular location. 名字和姓氏应该放在页面“ A”(我们想要得到结果的站点。应该自动填充该信息,并且一旦结果出现(我实际上是指下一页打开的时间)。并保存在特定位置。

The location is like D:\\REPORT\\student 1 位置类似于D:\\REPORT\\student 1

All the screenshots must be save here 所有屏幕截图都必须保存在这里

The three check boxes are three different sites. 三个复选框是三个不同的站点。 I should be able to get the result from one or more of those three sites 我应该能够从这三个站点中的一个或多个站点获得结果

This is the code that I have coded. 这是我编写的代码。

<html>

<center><font size="24" color="White"><b>
Experiment 1</center></font></b></i>
<body bgcolor="600000" bgproperties="fixed">
<br><br><b><font color="White">
First Name:<br>
<input type="text" name="fn"><br><br>
Last Name:<br>
<input type="text" name="ln"><br><br>
File Stored Location<br>
<input type="text" name="fsl"><br><br>
<form> 
<input type="radio" name="site1" value="site1"> site1 <br>
<input type="radio" name="site2" value="site2"> site2<br>
<input type="radio" name="site3" value="site3"> site3<br>
<input type="submit" value="Submit">
</form> 
</body>
</html>

Is this possible? 这可能吗?

First of all, consider using CSS for your layout. 首先,考虑将CSS用于布局。 It's much cleaner then what you are using now :). 这样,您现在所使用的要干净得多:)。

Wrap everything in a form like so: 将所有内容包装成如下形式:

<html>

<center><font size="24" color="White"><b>
Experiment 1</center></font></b></i>
<body bgcolor="600000" bgproperties="fixed">
<br><br>
<form action="a.php" method="POST">
<b><font color="White">
First Name:<br>
<input type="text" name="fn"><br><br>
Last Name:<br>
<input type="text" name="ln"><br><br>
File Stored Location<br>
<input type="text" name="fsl"><br><br>
<input type="radio" name="site1" value="site1"> site1 <br>
<input type="radio" name="site2" value="site2"> site2<br>
<input type="radio" name="site3" value="site3"> site3<br>
<input type="submit" value="Submit">
</form> 
</body>
</html>

Then you need php in your a.php to collect the post data from your form. 然后,您需要在a.php中使用php来收集表单中的帖子数据。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM