Private Library Video Learning notes-small fresh BBS system development technology summed up three

Source: Internet
Author: User
Tags urlencode

Foreground data display processing method:

<?php include ' inc/header.inc.php '?>
<div id= "Main" >
<div class= "title" > Parent Section List </div>
<form method= "POST" >
<table class= "List" >
<tr>
<th> Sort </th>
<th> section name </th>
<th> Operations </th>
</tr>
<?php
$query = "SELECT * from Sfk_father_module";
$result =execute ($link, $query);
while ($data =mysqli_fetch_assoc ($result)) {
$url =urlencode ("father_module_delete.php?id={$data [' ID ']}");
$return _url=urlencode ($_server[' Request_uri ');
$message = "Do you really want to delete the parent section {$data [' module_name ']}?" ";
$delete _url= "confirm.php?url={$url}&return_url={$return _url}&message={$message}";
$html =<<<a
<tr>
<td><input class= "Sort" type= "text" name= "sort[{$data [' ID ']}]" value= "{$data [' sort ']}"/></td>
<td>{$data [' module_name ']}[id:{$data [' ID ']}]</td>
<td><a href= "#" >[access]</a>&nbsp;&nbsp;<a href= "father_module_update.php?id={$data [' ID ']} ">[edit]</a>&nbsp;&nbsp;<a href=" $delete _url ">[Delete]</a></td>
</tr>
A
echo $html;
}
?>
</table>
<input style= "margin-top:20px;cursor:pointer;" class= "btn" type= "Submit" name= "submit" value= "Sort"/>
</form>
</div>


There are a number of treatments here:

The display of the foreground page, the prompt for the delete operation (second confirmation), and the result of the operation.

father_module.php confirm.php

This article is from the "Lone Boat Night House" blog, please be sure to keep this source http://cysky.blog.51cto.com/211942/1704659

Private Library Video Learning notes-small fresh BBS system development technology summed up three

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.