需要一个php信息输入页面和一个html显示页面

这个页面需要有九个输入框,输入后,所输入的内容会临时存在后台,而打开html页面时,先前输入到九个输入框的九个数字会分别显示在这个html页面上,用txt能解决就好,不行的话用sql,求详细代码!

4个回答

直接读文件写文件可以实现吧,再搭配上正则替换。

fenglinstudio
萌新项目人 您理解错误了,我需要的不是生成html,这么说吧: 需要一个php,这个php有九个input的输入框,从number1到number9,假设我在number2的input那里输入了5,希望达到的效果是在html页面number2所对应的代码能显示成5。求详细的php、html,sql/txt均可
大约 4 年之前 回复

使用session更方便哦

还能直接要代码的啊,你应该自己写哪里不明白再去问啊,直接让别人要代码很少会有人回答你的

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
将输入值从一个页面发送到另一个页面

<div class="post-text" itemprop="text"> <p>I'm working on Laravel project and I want to send my input values from the FORM from one page (the inscription page) to a pdf page (which I want the user to be able to download). I couldn't find a way to send them from that page to the other </p> <p>input:all using the <code>$request</code> in the <strong>controller</strong></p> <pre><code>&lt;div class="fieldgroup"&gt; &lt;input type="text" style="color:0B0C51" onclick="submitform2()" name="cin" id="cin" placeholder="N°CIN" maxlength="8" class="required"&gt;&lt;/i&gt;&lt;br&gt; &lt;/div&gt; &lt;div class="fieldgroup"&gt; &lt;input type="text" style="color:0B0C51" v-model="prenom" name="prenom" id="prenom" placeholder="Prenom" class="required"&gt;&lt;br&gt; &lt;/div&gt; &lt;div class="fieldgroup"&gt; &lt;input type="text" style="color:0B0C51" v-model="nom" onclick="submitform2()" name="nom" id="nom" placeholder="Nom" class="required"&gt;&lt;br&gt; &lt;/div&gt; &lt;div class="fieldgroup"&gt; &lt;input type="mail" style="color:0B0C51" name="email" id="email" placeholder="Email" class="required" /&gt; &lt;/div&gt; </code></pre> <p><strong>ViewController</strong> :</p> <pre><code> class ViewController extends Controller { public function generatePDF(Request $request){ $request=this. $data="form"; $pdf= PDF::loadView('pdf',compact('data')); return $pdf-&gt;download('Terms.pdf'); } </code></pre> <p>}</p> <p><strong>web.php</strong>:</p> <pre><code> Route::get('/pdf','ViewController@generatePDF'); </code></pre> <p><strong>inscriController:</strong> </p> <pre><code>public function store(Request $request) { $cin = $request-&gt;input('cin'); $data = array(['cin'=&gt;$cin ]); DB::table('form')-&gt;insert($data); return redirect('/pdf')-&gt;withInput(); </code></pre> <p>This returns an empty form page without the input values</p> </div>

HTML点击php页面跳转后php显示源代码问题

一个登录界面的跳转问题,在HTML代码中写入method="post" action="login.php",然后在login.php中写入引用数据库的代码,并且进行查询,绑定等操作之后,再在HTML网页中输入账号密码,点击登录,发现跳转到了login.php这个界面,但是发现这个界面显示的是login.php的原代码,并没有出现登录成功后的界面,Apache服务器输入php文件路径后是可以访问的,请问大神们这个怎么解决?

我用php创建了一个带搜索功能的页面。 当用户输入关键字时,关键字的信息将显示在同一页面上

<div class="post-text" itemprop="text"> <p>the code is this:</p> <pre><code>&lt;?php if ($_GET['partOf']) { $_GET['partOf'] = str_replace(' ', '', $_GET['partOf']); $posPage = file_get_contents("https://example/example/".$_GET['partOf'].''.''.''); $pageArray = explode('example&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt; &lt;/div&gt; &lt;/div&gt;', $posPage); $secondPageArray = explode('example', $pageArray[1]); $out = $secondPageArray[0]; } ?&gt; </code></pre> <p>form</p> <pre><code>&lt;form&gt; &lt;div class="form-group"&gt; &lt;label for="partOf"&gt;keyword being searched?&lt;/label&gt; &lt;input type="text" class="form-control" id="partOf" name="partOf" placeholder="ex. keyword"&gt; &lt;/div&gt; &lt;button type="submit" class="btn btn-primary"&gt;Submit&lt;/button&gt; &lt;/form&gt; </code></pre> <p>now what I would like is if the user types a new keyword the new data will be displayed but my problem is the data is not being displayed since the page URL is different. the output of the input keyword will be like this:</p> <p><a href="https://example/example/keyword" rel="nofollow noreferrer">https://example/example/keyword</a> </p> <p>but the page I would like to put the data has a URL like this:</p> <p><a href="https://example/example/keyword-word-word-word" rel="nofollow noreferrer">https://example/example/keyword-word-word-word</a> or</p> <p><a href="https://example/example/keyword-word-word" rel="nofollow noreferrer">https://example/example/keyword-word-word</a></p> <p>is it possible to disregard the -word-word-word so that when the user types a keyword the data will be displayed?</p> <p>what I want to happen is when the user types that keyword being searched the data for the keyword will displayed on the same page. this data will come from another page/page that I created </p> <p>I can get the data I want if I put the same exact keyword as the URL that I am getting the data from</p> <p>example:</p> <p>keyword being searched: mangoes</p> <p>to get the data I would need to input in the search as mangoes-green-sweet then submit</p> <p>what I would like is to arrived at the same result without typing -green-sweet or even -sweet only</p> </div>

需要一个input,输入的内容自动存入localStorage并在刷新页面后显示出来

需要一个input输入框,输入的内容自动存入localStorage并在刷新页面后显示出来

如何将用户输入数据发送到PHP并将数据从一个PHP页面发送到另一个PHP页面

<div class="post-text" itemprop="text"> <p>I am currently creating a basic maths website where it would ask the user to solve a multiply question.</p> <p>I'm planning to have the HTML layed out like:</p> <p></p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-html lang-html prettyprint-override"><code>1*8 = &lt;input type="number" maxlength="3" name="answer1"&gt;&lt;br&gt; 2*9 = &lt;input type="number" maxlength="3" name="answer2"&gt;&lt;br&gt; 4*4 = &lt;input type="number" maxlength="3" name="answer3"&gt;&lt;br&gt; &lt;button type="button"&gt;Check Answers&lt;/button&gt; &lt;p&gt;&lt;/p&gt;</code></pre> </div> </div> <p>This HTML code is generated by some PHP code:</p> <pre><code>&lt;?php $t = 0; for ($n = 1; $n &lt;= 10; $n++) { $a = rand(1, 10); $b = rand(1, 10); echo $a . "*" . $b . " = &lt;input type=\"number\" maxlength=\"3\" name=\"answer" . $n . "\"&gt;&lt;br&gt;"; $t = $a * $b; } ?&gt; </code></pre> <p>Now that is generated, I worked out what the total would be of the $a and $b (random numbers):</p> <pre><code>$t = $a * $b; </code></pre> <p>For the HTML button I wanted it so when the user clicks it, it would check all the input boxs and see if what they inputted = $t Forgetting all validation, all I want to get working for now is the very basics.</p> <p>I've got further with this using ajax to create a on-click event:</p> <pre><code>$(document).ready(function(){ $("button").click(function(){ $.ajax({ type: 'POST', url: 'calcc.php', success: function(data) { $("p").text(data); } }); }); }); </code></pre> <p>I've been messing around with it for a while now. I worked out that I would need to use $_SESSION or something similar to save the value of $t from before, but I can't seem to work out how it would all work, I keep getting errors of long repeated arrays and I have little idea how I would extract the information I want.</p> <p>Another problem I am having is retrieving the users input upon the on-click, I have used POST and GET before but when I click the submit button it will act in a way where the page would reload and change all of the random numbers.</p> <p>I preferably wanted to solve this in PHP. This has been bothering me for a while I just wanted to see if any of you had any great ideas of how I could make this work.</p> <p>Thank you in advance.</p> </div>

Html ..如何使用从一个页面到另一个页面的信息?

<div class="post-text" itemprop="text"> <ol> <li>So I asked the user to enter "First name" "Last name" and click submit and when they click submit it takes them to a different html page. I want to say "Welcome "first name" "last name"</li> </ol> <p>Update: html file....</p> <pre><code> &lt;form name ="myForm" action="index.php" method="post" &gt; Please Enter your Firstname :&lt;br&gt; &lt;input type="text" name="fname" value="" method="post"&gt; &lt;br&gt; </code></pre> <p>index.php file </p> <pre><code>&lt;h1&gt;Welcome &lt;?php echo $_POST["fname"]; ?&gt;&lt;br&gt;&lt;/h1&gt; </code></pre> <p>But php file only says Welcome...</p> </div>

如何在html页面动态显示当前登录用户信息?

![图片说明](https://img-ask.csdn.net/upload/201611/01/1477960764_559648.png) ![图片说明](https://img-ask.csdn.net/upload/201611/01/1477960612_380306.png) 这是我尝试的方法,username是一个拿到的当前用户的用户名(已经确认拿到了)。但是页面就是没有显示,求解

在同一页面的表单中提交并显示结果

<div class="post-text" itemprop="text"> <p>I've a form in which I want the calculate function to be called and displayed on the same page. If there is an error, it should display in the span tag on the same page. </p> <p>Here's what I have right now, and I'm running into problems:</p> <p>index.php <strong>[UPDATED]</strong>:</p> <pre><code>&lt;?php if (isset($_POST['submit'])) { $bdmm = $_POST['bdmm']; $sdmm = $_POST['sdmm']; $strings = array( $bdmm, $sdmm, $lgpm ); if(!$bdmm){ $error = "Error"; exit(); } elseif(!$sdmm){ $error = "Error"; exit(); } //check whether the string is numeric foreach ($string as $string) { if (!preg_match("/^-?([0-9])+\.?([0-9])+$/", $string)) { echo "Invalid entry. Please enter a number."; } } $calc = new Calc(); if (isset($bdmm)) { $calc-&gt;calculateMet($bdmm,$sdmm); } } // Defining the "calc" class class Calc { private $vs = 0; private $nob = 0; private $tw = 0; public function calculateMet($b,$s) { //code to calculate //display nbnm in textbox $nbnm = $nobr; //display twkg in textbox $tw = $nob * 25; $twr = round($tw); $twkg = $tw; exit; } } ?&gt; &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt; &lt;head&gt; &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /&gt; &lt;title&gt;Calculator&lt;/title&gt; &lt;link rel="stylesheet" type="text/css" href="main.css" /&gt; &lt;/head&gt; &lt;body&gt; &lt;!-- Begin Wrapper --&gt; &lt;div id="wrapper"&gt; &lt;div id="column"&gt; &lt;form id="deps" name="deps" action="&lt;?php echo $_SERVER["PHP_SELF"]; ?&gt;" method="POST"&gt; &lt;?php if (isset($_REQUEST['error'])){ $err = $_REQUEST['error']; ?&gt; &lt;div id="er"&gt; &lt;span class="er" &gt;&amp;nbsp;&lt;?php echo $err; ?&gt;&lt;/span&gt;&lt;/div&gt; &lt;?php } ?&gt; &lt;table class="table"&gt; &lt;tr&gt; &lt;td class="field head"&gt;&amp;nbsp;&lt;/td&gt; &lt;td class="field cv"&gt;&lt;label for="met"&gt;Metric&lt;/label&gt;&lt;/td&gt; &lt;td class="field cv"&gt;&lt;label for="eng"&gt;English&lt;/label&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="field head"&gt;&lt;label for="bd"&gt;Bore Dia.&lt;/label&gt;&lt;/td&gt; &lt;td class="field"&gt;&lt;input type="text" name="bdmm" id="bdmm" /&gt;&lt;label for="bdmm"&gt;MM&lt;/label&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="field head"&gt;&lt;label for="sd"&gt;Screen Dia.&lt;/label&gt;&lt;/td&gt; &lt;td class="field"&gt;&lt;input type="text" name="sdmm" id="sdmm" /&gt; &lt;label for="sdmm"&gt;MM&lt;/label&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="field head"&gt;&lt;label for="nbn"&gt;No. of Bags needed&lt;/label&gt;&lt;/td&gt; &lt;td class="field"&gt;&lt;input type="text" name="nbnm" id="nbnm" value="&lt;?php echo $nbnm; ?&gt;" /&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="field head"&gt;&lt;label for="tw"&gt;Total Weight&lt;/label&gt;&lt;/td&gt; &lt;td class="field"&gt;&lt;input type="text" name="twkg" id="twkg" value="&lt;?php echo $twkg; ?&gt;" /&gt; &lt;label for="twkg"&gt;KG&lt;/label&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;input type="submit" id="submit" value="Calculate" /&gt; &lt;/form&gt; &lt;/div&gt; &lt;/div&gt; &lt;!-- End Wrapper --&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>There are mainly two things I want to show in the form:</p> <p>1- If there is an error, it should display the error in the span tag -</p> <pre><code>&lt;?php if (isset($_REQUEST['error'])){ $err = $_REQUEST['error']; ?&gt; &lt;div id="er"&gt; &lt;span class="er" &gt;&amp;nbsp;&lt;?php echo $err; ?&gt;&lt;/span&gt;&lt;/div&gt; &lt;?php } ?&gt; </code></pre> <p>I did this^, but it does not throw any error even if the textbox is blank. </p> <p>2- I want to show the calculated results in the textboxes in the form itself:</p> <pre><code>&lt;td class="field"&gt;&lt;input type="text" name="nbnm" id="nbnm" value="&lt;?php echo $nbnm; ?&gt;" /&gt;&lt;/td&gt; &lt;td class="field"&gt;&lt;input type="text" name="twkg" id="twkg" value="&lt;?php echo $twkg; ?&gt;" /&gt; </code></pre> <p>^This is throwing an error: <code>Undefined variable nbnm and twkg</code></p> <p>Where am I going wrong?</p> </div>

如何在表单提交的html页面中显示PHP的成功消息

<div class="post-text" itemprop="text"> <p>I am developing website in html. In Careers.html page i am having Apply button. On clicking that apply button it will send the mail using php file. On suceess event i need to set the alert or to show the div on the same Careers.html page. </p> <p>Careers.html</p> <pre><code>&lt;form method="post" action="Applyresume.php" enctype="multipart/form-data"&gt; &lt;tr&gt; &lt;td&gt;First Name &lt;/td&gt; &lt;td&gt;&lt;input type="TextBox" name="First_Name" class="applytext" required&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Last Name &lt;/td&gt; &lt;td&gt;&lt;input type="TextBox" name="Last_Name" class="applytext" required&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;E-mail &lt;/td&gt; &lt;td&gt;&lt;input type="TextBox" name="email" class="applytext" required&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Phone &lt;/td&gt; &lt;td&gt;&lt;input type="TextBox" name="Phone_No" class="applytext" required&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Attachment &lt;/td&gt; &lt;td&gt;&lt;input type="file" name="attachment" maxlength="50" allow="text/*" class="applytext" required&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td colspan="2"&gt;&lt;input type="submit" name="button" class="send-resume" value="SEND" style="margin-left:24%;"&gt; &lt;input type="reset" value="RESET" style="margin-left:8%"&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/form&gt; </code></pre> <p>Applyresume.php</p> <pre><code> &lt;?php if($_POST &amp;&amp; isset($_FILES['attachment'])) { $name= $_POST['First_Name']; $lname= $_POST['Last_Name']; $email= $_POST['email']; $phonenum = $_POST['Phone_No']; $from_email = $_POST['email']; //sender email $recipient_email = 'nisha@acute.company'; //recipient email $subject = 'Test Email '; //subject of email $message = 'Resume attached below.'; //message body $emailbod = "$name $lname $email $phonenum"; //get file details we need $file_tmp_name = $_FILES['attachment']['tmp_name']; $file_name = $_FILES['attachment']['name']; $file_size = $_FILES['attachment']['size']; $file_type = $_FILES['attachment']['type']; $file_error = $_FILES['attachment']['error']; $user_email = filter_var($_POST["email"], FILTER_SANITIZE_EMAIL); if($file_error&gt;0) { die('upload error'); } //read from the uploaded file &amp; base64_encode content for the mail $handle = fopen($file_tmp_name, "r"); $content = fread($handle, $file_size); fclose($handle); $encoded_content = chunk_split(base64_encode($content)); $boundary = md5("sanwebe"); //header $headers = "MIME-Version: 1.0 "; $headers .= "From:".$from_email." "; $headers .= "Reply-To: ".$user_email."" . " "; $headers .= "Content-Type: multipart/mixed; boundary = $boundary "; //plain text $body = "--$boundary "; $body .= "Content-Type: text/plain; charset=ISO-8859-1 "; $body .= "Content-Transfer-Encoding: base64 "; $body .= chunk_split(base64_encode($emailbod)); //attachment $body .= "--$boundary "; $body .="Content-Type: $file_type; name=\"$file_name\" "; $body .="Content-Disposition: attachment; filename=\"$file_name\" "; $body .="Content-Transfer-Encoding: base64 "; $body .="X-Attachment-Id: ".rand(1000,99999)." "; $body .= $encoded_content; $sentMail = @mail($recipient_email, $subject, $body, $headers); if($sentMail) //output success or failure messages { echo '&lt;script type="text/javascript"&gt;alert("Thanks for your interest. Your Resume has been sent to HR@prominData.com");window.location.assign("Careers.html");&lt;/script&gt;'; }else { echo"&lt;script&gt;alert('Could not send mail! Please check your PHP mail configuration.')&lt;/script&gt;"; } } ?&gt; </code></pre> <p>My problem is I need to set the success alert in the same html page. But here my success alert is opening in PHP page.</p> <p>How to add this php code in same html page?</p> </div>

Php文件显示空白页面

<div class="post-text" itemprop="text"> <p>i have php 5.3.1 installed on apache2 in ubuntu 12.04 server . my site was working fine untill last week when i found some of the files were missing and website was not showing.I uploaded site again on server and now when i browse any php pages it shows a blank page and also when i try to see the source code in browser for the blank page it dosnt show any source code.the html files are all showing up.</p> <p>i dont think it is the server or appache2 probelm as i have other site with php on the same server working fine. i checked with php files they are alrite.checked with the htacces.txt and that is same as the other working site on the same server. can anyone here help what the problem could be.</p> <p>thanks </p> <p>Rida</p> </div>

如何将数据从页面获取到另一个页面,只需使用javascript在屏幕上显示即可

<div class="post-text" itemprop="text"> <p></p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-css lang-css prettyprint-override"><code>&lt;style&gt;div.container { max-width: 800px; max-height: 800px; display: inline-block; }</code></pre> <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;body&gt; &lt;h1&gt;Your Selection&lt;/h1&gt; &lt;p&gt;Here is the information you have submitted:&lt;/p&gt; &lt;div class="container"&gt; &lt;ol&gt; &lt;li&gt;&lt;em&gt;AID:&lt;/em&gt; &lt;?php echo $_POST['aid']?&gt; &lt;/li&gt; &lt;li&gt;&lt;em&gt;Date of Arrival:&lt;/em&gt; &lt;?php echo $_POST['Arrival']?&gt; &lt;/li&gt; &lt;li&gt;&lt;em&gt;Number of Days:&lt;/em&gt; &lt;?php echo $_POST['Days']?&gt; &lt;/li&gt; &lt;li&gt;&lt;em&gt;Number of Adults:&lt;/em&gt; &lt;?php echo $_POST['adults']?&gt; &lt;/li&gt; &lt;li&gt;&lt;em&gt;Number of Children&lt;/em&gt; &lt;?php echo $_POST['children']?&gt; &lt;/li&gt; &lt;li&gt;&lt;em&gt;Total:&lt;/em&gt; &lt;?php echo $_POST['Total']?&gt; &lt;/li&gt; &lt;/ol&gt; &lt;/div&gt; &lt;div class="container" align="left"&gt; &lt;form action="" method="post"&gt; Name : &lt;input type="text" name="name" placeholder="Full Name" /&gt;&lt;br&gt; Phone Number : &lt;input type="number" name="number" placeholder="Phone Number" /&gt;&lt;br&gt; Email : &lt;input type="email" name="Email" placeholder="Email" /&gt;&lt;br&gt; Address : &lt;input type="text" name="Address" placeholder="Address" /&gt;&lt;br&gt; &lt;input type="submit" value="Confirm"&gt; &lt;input type="submit" value="Cancel"&gt; &lt;/form&gt; &lt;/div&gt; &lt;/body&gt;</code></pre> </div> </div> <p>As the code runs it will print out the information that user already select and type previously. Whenever the user clicks on submit, it will turn to receipt page and list the data on the screen.</p> </div>

在输入类型日期显示日期从PHP中的数据库

<div class="post-text" itemprop="text"> <pre class="lang-php prettyprint-override"><code>&lt;label class="w3-text-teal"&gt;&lt;b&gt;Date Of Birth&lt;/b&gt;&lt;/label&gt; &lt;input class="w3-input w3-border w3-light-grey" type="date" value="&lt;?php echo strftime('%Y-%m-%d',strtotime($row['date_of_birth'])); ?&gt;" name="dob" required&gt; </code></pre> <p>Above is my code and I want to fetch database values of the date of birth in my input type date attribute.<br> Thanks In Advance :)</p> </div>

php查询页面怎么做,查询学生信息,读取mysql中的内容

查询学生信息用的网页,mysql的数据库,里面包括学生学号,姓名,身份证号,班级。怎样实现学生输入身份证号后显示出学生的其他相关信息,求p代码,而且mysql需要设置主键之类的么

将php变量作为隐藏输入传递,其中html包含在一个echo中

<div class="post-text" itemprop="text"> <p>I'm new with PHP and still learning.</p> <pre><code>&lt;?php if(isset($_POST['btnLogin'])){ $myVariable = $_POST['fieldParameter']; if(condition){ //do something }else{ echo " &lt;form method='POST' action='submit.php'&gt;&lt;br/&gt; &lt;input type='hidden' name='myVariable' value='&lt;?php echo $myVariable; ?&gt;'/&gt; &lt;br/&gt; &lt;input type='submit' name='btnSubmit' id='submit' value='Submit'&gt; &lt;/form&gt; "; } } ?&gt; </code></pre> <p>Notice that the variable <code>$myVariable</code> is contained in the main <code>IF</code> block. I'm trying to send the value of <code>$myVariable</code> to <strong>submit.php</strong> as hidden field.</p> <p>Also, i enclosed all the html tags using one <code>echo</code> statement with double quotes.</p> <p>I found related questions here in <code>SO</code> but can't find similar to embedding <code>php</code> within a long <code>echo</code> of <code>html</code> tags</p> <p>I tried to put <code>value='&lt;?php echo $studentNo; ?&gt;'</code> with no success.</p> <p>I want to access it in a <strong>submit.php</strong> file like this,</p> <p><strong>submit.php</strong></p> <pre><code>&lt;?php $aVariable = $_POST['myVariable']; echo $aVariable; ?&gt; </code></pre> <p>How can I pass the value contained in <code>$myVariable</code> as hidden field? Is there something wrong with the way I use double and single quotes?</p> <p>Thank you.</p> </div>

html、js输入框输入正确数值显示div

有个页面,index.html;上面有个input输入框,通过js判断数值正确与否,当数值未输入或者输入错误,均不不显示div,当数值输入正确,则显示div 这个数值来源是php调用过来的,调用的代码是 ``` <script type="text/javascript" src="https://cdn.bootcss.com/jquery/1.9.1/jquery.min.js"></script> <div id="dvCode"></div> <script> var timeSpan = 10 * 1000;//10秒钟请求一次php,要改成其他的间隔修改这里,单位为毫秒 function getCode() { //注意修改这里的路径,如果index.html和code文件夹不在同一个目录下 $.get('code/index.php', function (s) { $('#dvCode').html(s) }) } getCode();//加载页面立即加载内容 setInterval(getCode, timeSpan);//启动计时器 </script> ``` 要隐藏和显示的div和div id="dvCode"不是同一个div,后者是前者做输入判断时候的数据来源。 这种方式通过F12是可以看到当前数值的,不过这也无所谓的。 实在小白,由衷感谢showbo大神

在编写jsp登录页面,将页面输入的用户名和密码进行与sql数据库验证,总是跳转到错误页面,怎么办?

在编写jsp登录页面,将页面输入的用户名和密码进行与sql数据库验证,正确跳转到success.jsp,否则跳转到error.jsp页面,但是写完后不管输入正确的用户名还是错误的,都是跳转到错误页面,下面是console页面的打印信息,求大神帮我看看哪一步出现了错误,谢谢啦 java.lang.ClassNotFoundException: com.mysql.jdbc.Driver at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1892) at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1735) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:264) at com.weiye.util.ConnectionFactory.makeConnection(ConnectionFactory.java:45) at com.weiye.service.CheckUserService.check(CheckUserService.java:19) at com.weiye.servlet.CheckServlet.doPost(CheckServlet.java:57) at javax.servlet.http.HttpServlet.service(HttpServlet.java:650) at javax.servlet.http.HttpServlet.service(HttpServlet.java:731) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at com.weiye.filter.FilterTwo.doFilter(FilterTwo.java:37) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at com.weiye.filter.FilterOne.doFilter(FilterOne.java:45) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:218) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:956) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:442) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1083) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:640) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:318) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:745) java.lang.NullPointerException at com.weiye.service.CheckUserService.check(CheckUserService.java:20) at com.weiye.servlet.CheckServlet.doPost(CheckServlet.java:57) at javax.servlet.http.HttpServlet.service(HttpServlet.java:650) at javax.servlet.http.HttpServlet.service(HttpServlet.java:731) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at com.weiye.filter.FilterTwo.doFilter(FilterTwo.java:37) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at com.weiye.filter.FilterOne.doFilter(FilterOne.java:45) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:218) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:956) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:442) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1083) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:640) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:318) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:745) java.lang.NullPointerException at com.weiye.service.CheckUserService.check(CheckUserService.java:32) at com.weiye.servlet.CheckServlet.doPost(CheckServlet.java:57) at javax.servlet.http.HttpServlet.service(HttpServlet.java:650) at javax.servlet.http.HttpServlet.service(HttpServlet.java:731) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.Chain.doFilter(ApplicationFilterChain.java:208)

将文本框中输入的文本传递给其他三个页面

<div class="post-text" itemprop="text"> <p>I am trying to create three pages that when a name is entered in a text box and the button is clicked to the next page, it will ask to confirm if the name entered is correct and to click the next button to go to the last page. The text entered should transfer or pass from the first page, to the second, then the third. I have to use "hidden" as well as "header" as well as "POST" in the code. </p> <p>here is what I have on page one so far: </p> <pre><code>&lt;? $things = array('one thing', 'two thing'); ?&gt; &lt;form action= "page1.php" method="POST"&gt; &lt;INPUT TYPE="TEXT" name="textbox"&gt; &lt;input type='hidden' name='secret' value=96&gt; &lt;input type='hidden' name='stuff' value='&lt;?= urlencode(serialize($things)) ?&gt; ' &gt; &lt;input type='submit' name='submit_btn'&gt; &lt;/form&gt; </code></pre> <p>This is what I got on the next page:</p> <pre><code>&lt;?php echo "Click next if your name is " . $_POST['textbox']; ?&gt; &lt;form action= "page2.php" method="POST"&gt; &lt;input type='hidden' name='secret' value=96&gt; &lt;input type='hidden' name='stuff' value='&lt;?= urlencode(serialize($things)) ?&gt; ' &gt; &lt;input type='submit' name='next' value ="next"&gt; &lt;/form&gt; </code></pre> <p>and this is what i got on the last page... please help! thank you!</p> <pre><code>&lt;!-- To change this template, choose Tools | Templates and open the template in the editor. --&gt; &lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8"&gt; &lt;title&gt;&lt;/title&gt; &lt;/head&gt; &lt;body&gt; &lt;form action= "page1.php" method="POST"&gt; &lt;?php echo "Finally! Welcome " . $_POST['textbox']; ?&gt; &lt;/form&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> </div>

将HTML参数传递给php页面

<div class="post-text" itemprop="text"> <p>I am attempting to pass the parameters of the current html page to the php page using a form. So far I have the following function inside my header in the html</p> <pre><code> &lt;script&gt; function getURLParameter(name) { return decodeURIComponent((new RegExp('[?|&amp;]' + name + '=' + '([^&amp;;]+?)(&amp;|#|;|$)').exec(location.search) || [null, ''])[1].replace(/\+/g, '%20')) || null; } &lt;/script&gt; </code></pre> <p>and then in the form I have the following </p> <pre><code>&lt;input type="hidden" name="amtpaid" id="amtpaid" value="getURLParameter('amt')" /&gt; &lt;input type="hidden" name="status" id="sts" value="getURLParameter('st')" /&gt; </code></pre> <p>this is assuming a url such like </p> <blockquote> <p>www.somehost.com/page/?amt=5&amp;sts=CONFIRMED</p> </blockquote> <p>however all that the php says is posted is the following (this is aa dump of all post data)</p> <pre><code>Array ( [on1] =&gt; Steam 32 - ID (STEAM_0:X:XXXX) [os1] =&gt; hj [amtpaid] =&gt; getURLParameter('amt'); [status] =&gt; getURLParameter('st'); ) </code></pre> <p>anyhelp??</p> </div>

如何在分数页面后的同一页面上显示用户的答案和正确的答案

<div class="post-text" itemprop="text"> <p>I am currently stuck at the answer page for about a week already, it's very depressing. How do I carry forward what the user have chosen and showed the correct answer in the <strong>worksheet/question</strong> page, when I click "Review Your Answers" button.</p> <p>Here's my question page: </p> <pre><code>&lt;!DOCTYPE html&gt; &lt;head&gt; &lt;title&gt; English Kaki &lt;/title&gt; &lt;link rel="stylesheet" href="bootstrap.css"&gt; &lt;script src="https://code.jquery.com/jquery.js"&gt;&lt;/script&gt; &lt;script src="http://netdna.bootstrapcdn.com/bootstrap/3.0.3/js/bootstrap.min.js"&gt;&lt;/script&gt; &lt;link rel = "stylesheet" type = "text/css" href = "Main.css"&gt; &lt;/head&gt; &lt;body&gt; &lt;?php include_once"Header.php" ?&gt; &lt;div class="container-fluid"&gt; &lt;div class="container"&gt; &lt;center&gt;&lt;font color ="#FF9900"&gt;&lt;h1&gt;Sentence Structure&lt;/h1&gt;&lt;/font&gt; &lt;p&gt;Be our buddy, construct with us.&lt;/p&gt; &lt;/center&gt; &lt;/div&gt; &lt;div class="col-md-12" style="background-color:#ECEBEB;"&gt; &lt;div class="row"&gt; &lt;div class="col-sm-2" style="background-color:#ECEBEB;"&gt; &lt;/div&gt; &lt;div class="col-sm-6" style="background-color:#ECEBEB;"&gt; &lt;?php $id=isset($_GET['id'])? $_GET['id']: ''; $data= array( 'Gws1' =&gt;array( 'Name' =&gt;'Grammar Worksheet 1', 'Questions' =&gt;' &lt;form action="SSresultPage.php?id=1" method="post"&gt; &lt;fieldset&gt; &lt;ol&gt; &lt;li&gt; &lt;p&gt;This is question 1 of Gws1 &lt;/p&gt; &lt;ul id="Gws1_questions1_options"&gt; &lt;li&gt;&lt;input id="Gws1_questions1_options" name="Gws1_questions1_options" type="radio" value="q1 option1" /&gt;&lt;label&gt;q1 option1&lt;/label&gt;&lt;/li&gt; &lt;li&gt;&lt;input id="Gws1_questions1_options" name="Gws1_questions1_options" type="radio" value="q1 option2" /&gt;&lt;label&gt;q1 option2&lt;/label&gt;&lt;/li&gt; &lt;li&gt;&lt;input id="Gws1_questions1_options" name="Gws1_questions1_options" type="radio" value="q1 option3" /&gt;&lt;label&gt;q1 option3&lt;/label&gt;&lt;/li&gt; &lt;li&gt;&lt;input id="Gws1_questions1_options" name="Gws1_questions1_options" type="radio" value="q1 option4" /&gt;&lt;label&gt;q1 option4&lt;/label&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/li&gt; &lt;br&gt; &lt;li&gt; &lt;p&gt;This is question 2 of Gws1&lt;/p&gt; &lt;ul id="Gws1_questions2_options"&gt; &lt;li&gt;&lt;input id="Gws1_questions2_options" name="Gws1_questions2_options" type="radio" value="q2 option1" /&gt;&lt;label&gt;q2 option1&lt;/label&gt;&lt;/li&gt; &lt;li&gt;&lt;input id="Gws1_questions2_options" name="Gws1_questions2_options" type="radio" value="q2 option2" /&gt;&lt;label&gt;q2 option2&lt;/label&gt;&lt;/li&gt; &lt;li&gt;&lt;input id="Gws1_questions2_options" name="Gws1_questions2_options" type="radio" value="q2 option3" /&gt;&lt;label&gt;q2 option3&lt;/label&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/li&gt; &lt;br&gt; &lt;li&gt; &lt;p&gt;This is question 3 of Gws1&lt;/p&gt; &lt;ul id="Gws1_questions1_options"&gt; &lt;li&gt;&lt;input id="Gws1_questions3_options" name="Gws1_questions3_options" type="radio" value="q3 option1" /&gt;&lt;label&gt;q3 option1&lt;/label&gt;&lt;/li&gt; &lt;li&gt;&lt;input id="Gws1_questions3_options" name="Gws1_questions3_options" type="radio" value="q3 option2" /&gt;&lt;label&gt;q3 option2&lt;/label&gt;&lt;/li&gt; &lt;li&gt;&lt;input id="Gws1_questions3_options" name="Gws1_questions3_options" type="radio" value="q3 option3" /&gt;&lt;label&gt;q3 option3&lt;/label&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/li&gt; &lt;/ol&gt; &lt;/fieldset&gt; &lt;input type="submit" value="Get Result"/&gt; &lt;/form&gt;' ), 'Gws2' =&gt;array( 'Name' =&gt;'Grammar Worksheet 2', 'Questions' =&gt;' &lt;form action="SSresultPage.php?id=2" method="post"&gt; &lt;input type="submit" value="Get Result"/&gt; &lt;/form&gt;' ), 'Gws3' =&gt;array( 'Name' =&gt;'Grammar Worksheet 3', 'Questions' =&gt;' &lt;form action="SSresultPage.php?id=3" method="post"&gt; &lt;input type="submit" value="Get Result"/&gt; &lt;/form&gt;' ), 'Vws1' =&gt;array( 'Name' =&gt;'Vocabulary Worksheet 1', 'Questions' =&gt;' &lt;form action="SSresultPage.php?id=4" method="post"&gt; &lt;fieldset&gt; &lt;ol&gt; &lt;li&gt; &lt;p&gt;Excuse me, my meal is cold. Could you please ________ for me?&lt;/p&gt; &lt;ul id="Vws1_questions1_options"&gt; &lt;li&gt;&lt;input id="Vws1_questions1_options" name="Vws1_questions1_options" type="radio" value="q1 option1" /&gt;&lt;label&gt;make it warmer&lt;/label&gt;&lt;/li&gt; &lt;li&gt;&lt;input id="Vws1_questions1_options" name="Vws1_questions1_options" type="radio" value="q1 option2" /&gt;&lt;label&gt;warm it up&lt;/label&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/li&gt; &lt;br&gt; &lt;li&gt; &lt;p&gt;The ________ in most high end restaurants is usually excellent.&lt;/p&gt; &lt;ul id="Vws1_questions2_options"&gt; &lt;li&gt;&lt;input id="Vws1_questions2_options" name="Vws1_questions2_options" type="radio" value="q2 option1" /&gt;&lt;label&gt;service&lt;/label&gt;&lt;/li&gt; &lt;li&gt;&lt;input id="Vws1_questions2_options" name="Vws1_questions2_options" type="radio" value="q2 option2" /&gt;&lt;label&gt;responsibility&lt;/label&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/li&gt; &lt;br&gt; &lt;li&gt; &lt;p&gt;I felt very _____ after the buffet.&lt;/p&gt; &lt;ul id="Vws1_questions3_options"&gt; &lt;li&gt;&lt;input id="Vws1_questions3_options" name="Vws1_questions3_options" type="radio" value="q3 option1" /&gt;&lt;label&gt;complete&lt;/label&gt;&lt;/li&gt; &lt;li&gt;&lt;input id="Vws1_questions3_options" name="Vws1_questions3_options" type="radio" value="q3 option2" /&gt;&lt;label&gt;full&lt;/label&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/li&gt; &lt;/ol&gt; &lt;/fieldset&gt; &lt;input type="submit" value="Get Result"/&gt; &lt;/form&gt;' ), 'Vws2' =&gt;array( 'Name' =&gt;'Vocabulary Worksheet 2', 'Questions' =&gt;' &lt;form action="SSresultPage.php?id=5" method="post"&gt; &lt;input type="submit" value="Get Result"/&gt; &lt;/form&gt;' ), 'Vws3' =&gt;array( 'Name' =&gt;'Vocabulary Worksheet 3', 'Questions' =&gt;' &lt;form action="SSresultPage.php?id=6" method="post"&gt; &lt;input type="submit" value="Get Result"/&gt; &lt;/form&gt;' ) ); if(isset($id) || $id){ echo "&lt;h2&gt;{$data[$id]['Name']}&lt;/h2&gt;"; echo "&lt;h4&gt;Please choose the best option to complete the sentence.&lt;/h4&gt;{$data[$id]['Questions']}"; } ?&gt; &lt;/center&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="col-sm-3" style="background-color:#ECEBEB;"&gt;&lt;/div&gt; &lt;/div&gt; &lt;br&gt;&lt;br&gt; &lt;?php include_once"Footer.php" ?&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>Here's my result page:</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;head&gt; &lt;title&gt; English Kaki &lt;/title&gt; &lt;link rel="stylesheet" href="bootstrap.css"&gt; &lt;script src="https://code.jquery.com/jquery.js"&gt;&lt;/script&gt; &lt;script src="http://netdna.bootstrapcdn.com/bootstrap/3.0.3/js/bootstrap.min.js"&gt;&lt;/script&gt; &lt;link rel = "stylesheet" type = "text/css" href = "Main.css"&gt; &lt;/head&gt; &lt;body&gt; &lt;?php include_once"Header.php" ?&gt; &lt;div class="container-fluid"&gt; &lt;div class="container"&gt; &lt;center&gt;&lt;font color ="#FF9900"&gt;&lt;h1&gt;Sentence Structure&lt;/h1&gt;&lt;/font&gt; &lt;/div&gt; &lt;div class="col-md-12" style="background-color:#ECEBEB;"&gt; &lt;center&gt; &lt;?php $fid = $_GET['id']; if ($fid == 1){ if(!empty($_POST['Gws1_questions1_options']) &amp;&amp; !empty($_POST['Gws1_questions2_options']) &amp;&amp; !empty($_POST['Gws1_questions3_options'])){ $answer1 = $_POST['Gws1_questions1_options'] &amp;&amp; $answer2 = $_POST['Gws1_questions2_options'] &amp;&amp; $answer3 = $_POST['Gws1_questions3_options']; $score =0; if ($answer1 == "q1 option1"){$score++;} if ($answer2 == "q2 option1"){$score++;} if ($answer3 == "q3 option1"){$score++;} echo "&lt;h3&gt;I'm proud of you for completing the worksheet!&lt;/h3&gt;"; echo "&lt;h2&gt;Your score is $score/3&lt;/h2&gt;&lt;br&gt;"; echo "Review your answers and find out where you went wrong!&lt;br&gt;&lt;br&gt;"; echo "&lt;center&gt;&lt;form action='SSanswerPage.php'&gt; &lt;input type = 'submit' value = 'Review your answers' class='btn'/&gt; &lt;/form&gt;&lt;center&gt;&lt;br&gt;&lt;br&gt;"; } else { echo '&lt;p&gt;&lt;font color="red"&gt;You must answer all questions before you can get your result.&lt;/font&gt;&lt;/p&gt;'; }} elseif ($fid == 2){ echo"2"; } elseif ($fid == 3){ echo"3"; } elseif ($fid == 4){ $answer1 = $_POST['Vws1_questions1_options']; $answer2 = $_POST['Vws1_questions2_options']; $answer3 = $_POST['Vws1_questions3_options']; $score =0; if ($answer1 == "q1 option2"){$score++;} if ($answer2 == "q2 option1"){$score++;} if ($answer3 == "q3 option2"){$score++;} echo "&lt;h3&gt;I'm proud of you for completing the worksheet!&lt;/h3&gt;"; echo "&lt;h2&gt;Your score is $score/3&lt;/h2&gt;&lt;br&gt;"; echo "Review your answers and find out where you went wrong!&lt;br&gt;&lt;br&gt;"; echo "&lt;center&gt;&lt;form action='SSanswerPage.php'&gt; &lt;input type = 'submit' value = 'Review your answers' class='btn'/&gt; &lt;/form&gt;&lt;center&gt;&lt;br&gt;&lt;br&gt;"; } elseif ($fid == 5){ echo"5"; } elseif ($fid == 6){ echo"6"; } ?&gt; &lt;/center&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="col-sm-3" style="background-color:#ECEBEB;"&gt;&lt;/div&gt; &lt;/div&gt; &lt;br&gt;&lt;br&gt; &lt;?php include_once"Footer.php" ?&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>Only <code>Grammar Worksheet 1</code> have questions and can compute score for now.<br> Thank you in advance. </p> </div>

上班一个月,后悔当初着急入职的选择了

最近有个老铁,告诉我说,上班一个月,后悔当初着急入职现在公司了。他之前在美图做手机研发,今年美图那边今年也有一波组织优化调整,他是其中一个,在协商离职后,当时捉急找工作上班,因为有房贷供着,不能没有收入来源。所以匆忙选了一家公司,实际上是一个大型外包公司,主要派遣给其他手机厂商做外包项目。**当时承诺待遇还不错,所以就立马入职去上班了。但是后面入职后,发现薪酬待遇这块并不是HR所说那样,那个HR自...

副业收入是我做程序媛的3倍,工作外的B面人生是怎样的?

提到“程序员”,多数人脑海里首先想到的大约是:为人木讷、薪水超高、工作枯燥…… 然而,当离开工作岗位,撕去层层标签,脱下“程序员”这身外套,有的人生动又有趣,马上展现出了完全不同的A/B面人生! 不论是简单的爱好,还是正经的副业,他们都干得同样出色。偶尔,还能和程序员的特质结合,产生奇妙的“化学反应”。 @Charlotte:平日素颜示人,周末美妆博主 大家都以为程序媛也个个不修边幅,但我们也许...

MySQL数据库面试题(2020最新版)

文章目录数据库基础知识为什么要使用数据库什么是SQL?什么是MySQL?数据库三大范式是什么mysql有关权限的表都有哪几个MySQL的binlog有有几种录入格式?分别有什么区别?数据类型mysql有哪些数据类型引擎MySQL存储引擎MyISAM与InnoDB区别MyISAM索引与InnoDB索引的区别?InnoDB引擎的4大特性存储引擎选择索引什么是索引?索引有哪些优缺点?索引使用场景(重点)...

我说我不会算法,阿里把我挂了。

不说了,字节跳动也反手把我挂了。

抖音上很火的时钟效果

反正,我的抖音没人看,别人都有几十万个赞什么的。 发到CSDN上来,大家交流下~ 主要用到原生态的 JS+CSS3。 具体不解释了,看注释: &lt;!DOCTYPE html&gt; &lt;html lang="en"&gt; &lt;head&gt; &lt;meta charset="UTF-8"&gt; &lt;title&gt;Title&lt;/tit...

记录下入职中软一个月(外包华为)

我在年前从上一家公司离职,没想到过年期间疫情爆发,我也被困在家里,在家呆着的日子让人很焦躁,于是我疯狂的投简历,看面试题,希望可以进大公司去看看。 我也有幸面试了我觉得还挺大的公司的(虽然不是bat之类的大厂,但是作为一名二本计算机专业刚毕业的大学生bat那些大厂我连投简历的勇气都没有),最后选择了中软,我知道这是一家外包公司,待遇各方面甚至不如我的上一家公司,但是对我而言这可是外包华为,能...

为什么程序员做外包会被瞧不起?

二哥,有个事想询问下您的意见,您觉得应届生值得去外包吗?公司虽然挺大的,中xx,但待遇感觉挺低,马上要报到,挺纠结的。

手机经常收到"回复TD退订",回还是不回?今天总算是弄清楚了

自从有了微信和QQ,手机短信几乎很少再用了,但是我们手机里面还是经常会收到"回复TD退订"的消息,那到底要不要回复呢?今天就来告诉大家! 信息内容可能包括 推销信息 品牌活动日的时候,会根据你的用户浏览信息,或者购买记录,后续发送一些降价消息。 但是笔者想说我是缺那10块钱的人嘛,我缺的是1000块。 垃圾信息 虽然我们已经不经常用短信功能,但是还是有不少...

当HR压你价,说你只值7K,你该怎么回答?

当HR压你价,说你只值7K时,你可以流畅地回答,记住,是流畅,不能犹豫。 礼貌地说:“7K是吗?了解了。嗯~其实我对贵司的面试官印象很好。只不过,现在我的手头上已经有一份11K的offer。来面试,主要也是自己对贵司挺有兴趣的,所以过来看看……”(未完) 这段话主要是陪HR互诈的同时,从公司兴趣,公司职员印象上,都给予对方正面的肯定,既能提升HR的好感度,又能让谈判气氛融洽,为后面的发挥留足空间。...

面试官问我:如何加载100M的图片却不撑爆内存

还记得当年面试一个面试官问我怎么加载巨图才能不撑爆内存,我没回答上来,他说分片显示,我寻思特么分片能减少内存使用??现在可以打他脸了! 内容扩展 1.图片的三级缓存中,图片加载到内存中,如果内存快爆了,会发生什么?怎么处理? 2.内存中如果加载一张 500*500 的 png 高清图片.应该是占用多少的内存? 3.Bitmap 如何处理大图,如一张 30M 的大图,如何预防 OOM? A...

面试阿里p7,被按在地上摩擦,鬼知道我经历了什么?

面试阿里p7被问到的问题(当时我只知道第一个):@Conditional是做什么的?@Conditional多个条件是什么逻辑关系?条件判断在什么时候执...

又出事了?网站被攻击了?高中生?

北京时间2020年3月27日9点整,如往常一样来到公司,带开电脑,正准备打开Github网站看一会源代码,再开始手头的工作。哟吼,一直打不开,一直出现如下页面: 我想很多网友也尝到了甜头,各大技术群炸开了锅,据网友反馈有攻击者正在发起大规模的中间人挟持,京东和Github等网站等网站都受到了影响。 什么是中间中间人挟持呢? 简而言之,就是攻击者在数据网络传输的过程中,截获传输过程中的数据并篡改...

无代码时代来临,程序员如何保住饭碗?

编程语言层出不穷,从最初的机器语言到如今2500种以上的高级语言,程序员们大呼“学到头秃”。程序员一边面临编程语言不断推陈出新,一边面临由于许多代码已存在,程序员编写新应用程序时存在重复“搬砖”的现象。 无代码/低代码编程应运而生。无代码/低代码是一种创建应用的方法,它可以让开发者使用最少的编码知识来快速开发应用程序。开发者通过图形界面中,可视化建模来组装和配置应用程序。这样一来,开发者直...

培训班出来的人后来都怎么样了?(二)

接着上回说,培训班学习生涯结束了。后面每天就是无休止的背面试题,不是没有头脑的背,培训公司还是有方法的,现在回想当时背的面试题好像都用上了,也被问到了。回头找找面试题,当时都是打印下来天天看,天天背。 不理解呢也要背,面试造飞机,上班拧螺丝。班里的同学开始四处投简历面试了,很快就有面试成功的,刚开始一个,然后越来越多。不知道是什么原因,尝到胜利果实的童鞋,不满足于自己通过的公司,嫌薪水要少了,选择...

面试了一个 31 岁程序员,让我有所触动,30岁以上的程序员该何去何从?

最近面试了一个31岁8年经验的程序猿,让我有点感慨,大龄程序猿该何去何从。

6年开发经验女程序员,面试京东Java岗要求薪资28K

写在开头: 上周面试了一位女程序员,上午10::30来我们部门面试,2B哥接待了她.来看看她的简历: 个人简历 个人技能: ● 熟悉spring mvc 、spring、mybatis 等框架 ● 熟悉 redis 、rocketmq、dubbo、zookeeper、netty 、nginx、tomcat、mysql。 ● 阅读过juc 中的线程池、锁的源...

大三实习生,字节跳动面经分享,已拿Offer

说实话,自己的算法,我一个不会,太难了吧

程序员垃圾简历长什么样?

已经连续五年参加大厂校招、社招的技术面试工作,简历看的不下于万份 这篇文章会用实例告诉你,什么是差的程序员简历! 疫情快要结束了,各个公司也都开始春招了,作为即将红遍大江南北的新晋UP主,那当然要为小伙伴们做点事(手动狗头)。 就在公众号里公开征简历,义务帮大家看,并一一点评。《启舰:春招在即,义务帮大家看看简历吧》 一石激起千层浪,三天收到两百多封简历。 花光了两个星期的所有空闲时...

工作八年,月薪60K,裸辞两个月,投简历投到怀疑人生!

近日,有网友在某职场社交平台吐槽,自己裸辞两个月了,但是找工作却让自己的心态都要崩溃了,全部无果,不是已查看无回音,就是已查看不符合。 “工作八年,两年一跳,裸辞两个月了,之前月薪60K,最近找工作找的心态崩了!所有招聘工具都用了,全部无果,不是已查看无回音,就是已查看不符合。进头条,滴滴之类的大厂很难吗???!!!投简历投的开始怀疑人生了!希望 可以收到大厂offer” 先来看看网...

推荐9个能让你看一天的网站

分享的这9个保证另你意外的网站,每个都非常实用!非常干货!毫不客气的说,这些网站最少值10万块钱。 利用好这些网站,会让你各方面的技能都得到成长,不说让你走上人生巅峰,但对比现在的你,在眼界、学识、技能方面都有质的飞跃。 一、AIRPANO 传送门:https://www.airpano.com/360photo_list.php 这是一个可以躺在家里,就能环游世界的神奇网站。 世界那么大,绝大多...

大牛都会用的IDEA调试技巧!!!

导读 前天面试了一个985高校的实习生,问了他平时用什么开发工具,他想也没想的说IDEA,于是我抛砖引玉的问了一下IDEA的调试用过吧,你说说怎么设置断点...

都前后端分离了,咱就别做页面跳转了!统统 JSON 交互

文章目录1. 无状态登录1.1 什么是有状态1.2 什么是无状态1.3 如何实现无状态1.4 各自优缺点2. 登录交互2.1 前后端分离的数据交互2.2 登录成功2.3 登录失败3. 未认证处理方案4. 注销登录 这是本系列的第四篇,有小伙伴找不到之前文章,松哥给大家列一个索引出来: 挖一个大坑,Spring Security 开搞! 松哥手把手带你入门 Spring Security,别再问密...

月薪22K程序员,打卡迟到10次,收到工资短信一脸懵逼

每家公司为了保证公司员工每天的工作时间,一般都会采用上下班打卡的工作制度,这其实是一个很常见的是,本身也没有什么问题的。正所谓无规矩不成方圆,公司肯定是有公司的规矩,虽然每个员工都很不喜欢这些规矩来束缚我们,但是公司也只是为了能更好的管理员工。但是一家公司如果一成不变的使用打卡制度,而不会去变通管理,也真不一定是好事。 打卡制度特别对于销售部门来说,不但会让公司发展不起来,还很容易丢失员工。但如...

97年世界黑客编程大赛冠军作品(大小仅为16KB),惊艳世界的编程巨作

这是世界编程大赛第一名作品(97年Mekka ’97 4K Intro比赛)汇编语言所写。 整个文件只有4095个字节, 大小仅仅为16KB! 不仅实现了3D动画的效果!还有一段震撼人心的背景音乐!!! 内容无法以言语形容,实在太强大! 下面是代码,具体操作看最后! @echo off more +1 %~s0|debug e100 33 f6 bf 0 20 b5 10 f3 a5...

不要再到处使用 === 了

我们知道现在的开发人员都使用 === 来代替 ==,为什么呢?我在网上看到的大多数教程都认为,要预测 JavaScript 强制转换是如何工作这太复杂了,因此建议总是使用===。这些都...

什么是a站、b站、c站、d站、e站、f站、g站、h站、i站、j站、k站、l站、m站、n站?00后的世界我不懂!

A站 AcFun弹幕视频网,简称“A站”,成立于2007年6月,取意于Anime Comic Fun,是中国大陆第一家弹幕视频网站。A站以视频为载体,逐步发展出基于原生内容二次创作的完整生态,拥有高质量互动弹幕,是中国弹幕文化的发源地;拥有大量超粘性的用户群体,产生输出了金坷垃、鬼畜全明星、我的滑板鞋、小苹果等大量网络流行文化,也是中国二次元文化的发源地。 B站 全称“哔哩哔哩(bilibili...

十个摸鱼,哦,不对,是炫酷(可以玩一整天)的网站!!!

文章目录前言正文**1、Kaspersky Cyberthreat real-time map****2、Finding Home****3、Silk – Interactive Generative Art****4、Liquid Particles 3D****5、WINDOWS93****6、Staggering Beauty****7、Ostagram图片生成器网址****8、全历史网址*...

我真的错了,我被跳槽后的高薪冲昏了头脑...

国内疫情已接近尾声,疫情对生活各个方面造成的影响,就是一场真实的“蝴蝶效应”。“全球最大安全套制造商因疫情停产,已造成一亿个安全套缺口”“口罩印钞机,月入千万的暴富神话”“百程旅行...

终于,月薪过5万了!

来看几个问题想不想月薪超过5万?想不想进入公司架构组?想不想成为项目组的负责人?想不想成为spring的高手,超越99%的对手?那么本文内容是你必须要掌握的。本文主要详解bean的生命...

​能让德国人放弃现金支付​,也没谁了

在新冠疫情中,德国人越来越多地选择在超市,加油站或其他商店付款时使用非接触式付款方式。德国信贷协会Deutschen Kreditwirtschaft (DK) 的一位发言人告诉德国新...

相关热词 c# 局部 截图 页面 c#实现简单的文件管理器 c# where c# 取文件夹路径 c# 对比 当天 c# fir 滤波器 c# 和站 队列 c# txt 去空格 c#移除其他类事件 c# 自动截屏
立即提问