doucaishou0074 2018-03-09 21:21
浏览 52

使用SQL保存输出的php网页显示到服务器或

I have two php files. One is my input php file is where I have heading title with a table. In the table, I have text, text boxes for writing text, and check boxes for putting check marks, and then it has a submit button to take me to the another php file which acts like my display output.

After I click on the submit button, It takes me to this output php file, which displays the same heading, same table structure with check marks that were inputted in input php file, and the text that was written in the input php file.

Now, I want a save button on the output php file, using SQL, that can save the entire output page displayed on a webpage, to be saved on my Linux server(that I have access to through my terminal) using file path, and/or also another save button on my output php file using SQL to save on my personal computer.

Example, this is my part of my input php file code:

<tr><td width="10" align="left"><input type="checkbox" name="check_create_disk_array" value="Y"></td><td width="490" align="left">Create Disk Array</td><td width="1400" align="left"><input type="text" size="235" name="info_create_disk_array"></td></tr>`

this, is part of my output file code:

<tr><td width="10" align="left">
<?php
if(isset($_POST['check_create_disk_array']) && $_POST['check_create_disk_array'] == 'Y')
{
echo "Yes";
}
else
{
echo "No";
}
?>
</td>
<td width="290" align="left">Create Disk Array</td>
<td width="1600" align="left">
<?php
$info_create_disk_array = $_POST['info_create_disk_array'];
echo $info_create_disk_array;
?>
</td></tr>

Finally, Let us I put a checkmark and type 'terminator' in the textbox of the input php file, here would be the source code of the output webpage displaying(since I am not able to take pictures on my work computer or screen shots of the web page).

<tr>
<td width="10" align="left">
Yes</td>
<td width="290" align="left">Create Disk Array</td>
<td width="1600" align="left">
terminator</td>
</tr>

Earlier, I asked about if I can use Java Script seems like there is no way to do it, was wondering if I can use SQL to save the data inputted, and then use SQL to display the data on the output page.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 基于卷积神经网络的声纹识别
    • ¥15 Python中的request,如何使用ssr节点,通过代理requests网页。本人在泰国,需要用大陆ip才能玩网页游戏,合法合规。
    • ¥100 为什么这个恒流源电路不能恒流?
    • ¥15 有偿求跨组件数据流路径图
    • ¥15 写一个方法checkPerson,入参实体类Person,出参布尔值
    • ¥15 我想咨询一下路面纹理三维点云数据处理的一些问题,上传的坐标文件里是怎么对无序点进行编号的,以及xy坐标在处理的时候是进行整体模型分片处理的吗
    • ¥15 CSAPPattacklab
    • ¥15 一直显示正在等待HID—ISP
    • ¥15 Python turtle 画图
    • ¥15 stm32开发clion时遇到的编译问题