post

How do I change a string line submitted in the form with another form input

[亡魂溺海] 提交于 2020-02-08 07:47:07
问题 In my first page I have this code: $number="1234567891"; $str="456"; echo "<form action='edit.php' method='POST'><input type='hidden' name='msg' value='$message' /> <input type='hidden' name='text' value='$number' /> <input type='hidden' name='edit' value='$str' /> <input type='submit' name='chedit' value='Go' style='position:relative; top:25px; left: 50%;'> </form>"; In my edit.php I have this code: <form action="#" method="POST"> Edit Number <input type="text" name="change" value="$mumu"/>

How do I change a string line submitted in the form with another form input

一笑奈何 提交于 2020-02-08 07:46:07
问题 In my first page I have this code: $number="1234567891"; $str="456"; echo "<form action='edit.php' method='POST'><input type='hidden' name='msg' value='$message' /> <input type='hidden' name='text' value='$number' /> <input type='hidden' name='edit' value='$str' /> <input type='submit' name='chedit' value='Go' style='position:relative; top:25px; left: 50%;'> </form>"; In my edit.php I have this code: <form action="#" method="POST"> Edit Number <input type="text" name="change" value="$mumu"/>

submit button will not show the result by one click it will show it by second click

China☆狼群 提交于 2020-02-08 07:32:51
问题 When I click the update button it will not update the table but when i Click it again it will be updated how can I correct it? <html> <head> <title>pharmacy</title> <form method="post"> <?php session_start(); $connection=Mysql_connect('localhost','admin','123'); Mysql_select_db('db',$connection); $pname=$_SESSION['s1']; $query="select * from request where ph='$pname'"; if(array_key_exists('rqlist',$_POST)) { if(!$connection) { echo 'connection is invalid'; } else { $result=mysql_query($query)

submit button will not show the result by one click it will show it by second click

喜你入骨 提交于 2020-02-08 07:31:49
问题 When I click the update button it will not update the table but when i Click it again it will be updated how can I correct it? <html> <head> <title>pharmacy</title> <form method="post"> <?php session_start(); $connection=Mysql_connect('localhost','admin','123'); Mysql_select_db('db',$connection); $pname=$_SESSION['s1']; $query="select * from request where ph='$pname'"; if(array_key_exists('rqlist',$_POST)) { if(!$connection) { echo 'connection is invalid'; } else { $result=mysql_query($query)

submit button will not show the result by one click it will show it by second click

白昼怎懂夜的黑 提交于 2020-02-08 07:31:42
问题 When I click the update button it will not update the table but when i Click it again it will be updated how can I correct it? <html> <head> <title>pharmacy</title> <form method="post"> <?php session_start(); $connection=Mysql_connect('localhost','admin','123'); Mysql_select_db('db',$connection); $pname=$_SESSION['s1']; $query="select * from request where ph='$pname'"; if(array_key_exists('rqlist',$_POST)) { if(!$connection) { echo 'connection is invalid'; } else { $result=mysql_query($query)

What encoding scheme is this?

巧了我就是萌 提交于 2020-02-08 07:00:46
问题 I have found the following encoding scheme in the POST requests at a login screen. On the left is what I typed in the password field, on the right is what was passed to the server: aaaaaaaaaa -> %5BYHj%5BYHj%5BYHj%5BS%3F%3F bbbbbbbbbb -> %5BoLk%5BoLk%5BoLk%5Bi%3F%3F hello -> cIXudI%3A%3F doggie -> %5CI%3Bp%5C4nn abcdefghilk12345678 -> %5BYLl%5CIXo%5C4jrdIuzOlO2PV%5B5QC%3F%3F What encoding scheme is this? 来源: https://stackoverflow.com/questions/28158842/what-encoding-scheme-is-this

C# HttpClient not sending POST variables

拜拜、爱过 提交于 2020-02-08 04:51:07
问题 I'm trying to make an app that will send a POST request to https://owlexpress.kennesaw.edu/prodban/bwckschd.p_get_crse_unsec with some info and return a class list. You can go here to go through the search "I'm using Fall 2015, MATH, Course 1190". https://owlexpress.kennesaw.edu/prodban/bwckschd.p_disp_dyn_sched When I run the code below, it outputs what it returns to a string which goes into a webbrowser component. It shows: Class Schedule Search Fall Semester 2015 Mar 31, 2015 Stop You must

get和post请求方法

吃可爱长大的小学妹 提交于 2020-02-07 20:56:16
get提交方式 method=“get” 和 地址栏、超链接(a href = “xx”)请求方式默认属于get提交方式 get与post请求方式的区别 get方式在地址栏显示请求信息(都是地址栏能够容纳的信息有限,4-5KB,如果请求数据存在大文件,使用post请求) 文件上传操作,必须是post 统一请求的编码 get方式请求,如果出现乱码,解决方法: 统一每个变量的编码(不推荐)new String(旧编码,新编码),name = new String(name.getBytes(“ios-8859-1”),“utf-8”); 修改server.xml,一次性的更改tomcat默认get提交方式的编码(utf-8)建议使用tomcat时,在server.xml中统一get方式的编码 post方式解决 request.setCharacterEncoding(“utf-8”); 来源: CSDN 作者: 碎时纪 链接: https://blog.csdn.net/weixin_43945486/article/details/104211897

文件包含漏洞---php协议

扶醉桌前 提交于 2020-02-07 18:45:25
一、原理   1、概念:在php代码中,总会有一些代码我们会经常用到,这时引入了文件包含函数,可以通过文件包含函数把这些代码文件包含进来,直接使用文件中的代码,这样提高了我们的工作效率。   2、文件包含函数:     include():如果发生错误,会产生一个警告然后继续执行脚本     include_once():与include()相同,如果文件之前被包含过则不再包含     require():会停止执行代码     require_once():如果文件之前被包含过则不再包含   3、类型:本地文件包含、远程文件包含(url的形式进行)    配置文件参数:allow_url_fopen:为ON时,能读取远程文件,           Allow_url_include:为ON时,就可以使用include和require等方式包含远程文件   4、利用方式——伪协议     # file://  协议用户访问本地文件系统,使用方法:?file:// [文件的绝对路径和文件名]     # php://input  可以访问请求的原始数据的只读流,将post请求的数据当作php代码执行     # php://filter  元封装器,读取源代码并以base64编码方式输出     # zip://, bzip2://, zlib://   属于压缩流

Post Office POJ - 1160(DP)

China☆狼群 提交于 2020-02-07 17:34:40
There is a straight highway with villages alongside the highway. The highway is represented as an integer axis, and the position of each village is identified with a single integer coordinate. There are no two villages in the same position. The distance between two positions is the absolute value of the difference of their integer coordinates. Post offices will be built in some, but not necessarily all of the villages. A village and the post office in it have the same position. For building the post offices, their positions should be chosen so that the total sum of all distances between each