Table of Contents
              当前位置:首页 > 诚聘英才              诚聘英才" >php获得页面所有html内容,并将input text里的内容换成普通文字              当前位置:首页 > 诚聘英才              诚聘英才
浙江蓝雪食品有限公司职位申请表<1>
职位申请表<2>
回复讨论(解决方案)
Home Backend Development PHP Tutorial php获得页面所有html内容,并将input text里的内容换成普通文字

php获得页面所有html内容,并将input text里的内容换成普通文字

Jun 23, 2016 pm 01:55 PM
input php text content letter

<? include_once("../config.php")?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><link rel="stylesheet" type="text/css" href="cs/base.css"><link rel="stylesheet" type="text/css" href="cs/layout.css"><link rel="stylesheet" type="text/css" href="cs/typography.css"><script type="text/javascript" src="js/jquery.js" ></script><script src="js/jcarousellite.js" type="text/javascript"></script><style>#box{width: 1000px; margin:0px auto; color:#000;}#box h3{width:1000px; text-align:center; font-size: 24px;}#box h3 span{font-size:18px;}#box table{width: 100%;}#box p{margin:0px; padding:0px;}#box tr,#box td{height:30px; line-height:30px;}#box td{padding:0px 4px;}#box table,#box tr,#box td{border:#333 solid 1px; border-collapse:collapse;}#box .tit{font-weight:bold;}.cls{position: relative; top:-1px;}.cls2{position:relative; top:-2px;}.cls3{position:relative; top:-3px;}.note{padding:20px 0px; font-size:12px; vertical-align:text-top; line-height:22px;}.tj{width:120px; height:30px; text-align:center}</style></head><body><div id="main" style="background:url(images/bg2.jpg) center top no-repeat">	<div id="main_box">        <? require_once('header.php');?><!--header-->        <div class="ny_flash">        <!--<img  src="/static/imghw/default1.png"  data-src="images/ny_flash.png"  class="lazy"      style="max-width:90%"  style="max-width:90%" / alt="php获得页面所有html内容,并将input text里的内容换成普通文字" >-->        <? signerpost("cn","诚聘英才图片"); ?>        </div><!--ny_flash-->      	<div id="center">        	<div class="pifa_up">          	 <h3 id="span-img-src-static-imghw-default-png-data-src-images-home-png-class-lazy-nbsp-nbsp-style-max-width-nbsp-style-max-width-nbsp-align-absMiddle-nbsp-alt-php获得页面所有html内容-并将input-text里的内容换成普通文字-nbsp-nbsp-nbsp-nbsp-nbsp-nbsp-nbsp-nbsp-nbsp-nbsp-nbsp-nbsp-nbsp-nbsp-当前位置-a-nbsp-href-index-php-首页-a-nbsp-nbsp-font-诚聘英才-font-span-nbsp-nbsp-nbsp-nbsp-nbsp-nbsp-nbsp-nbsp-nbsp-nbsp-nbsp-nbsp-nbsp-nbsp-诚聘英才"><span><img  src="/static/imghw/default1.png"  data-src="images/home.png"  class="lazy"      style="max-width:90%"  style="max-width:90%" align="absMiddle" / alt="php获得页面所有html内容,并将input text里的内容换成普通文字" >              当前位置:<a href="index.php">首页</a> > <font>诚聘英才</font></span>              诚聘英才</h3>          </div>           <div class="pifa_down">           	<div class="con_right">            <style>.input_jobs{ width:150px; height:20px; border:solid 1px #CCCCCC; vertical-align:middle;}.con_right td{ padding-left:10px;}.STYLE1 {	color: #000000;	font-weight: bold;}.STYLE3 {color: #666666}</style>            <?if (isset($_POST['应聘岗位'])){	$content = savecareer($maindb);	$record = array(		'Content' => $content,		'NoteTime' => date("Y-m-d H:i:s"),		'Language' => 'cn'	);	$maindb->AutoExecute('t_career',$record,"INSERT");	echo '<script>alert("提交成功")</script>'; }function savecareer($db){	$content = "";	while(list($key,$val) = each($_POST))	{		$content .= $key.":".$val."<br>";	}	return $content;}?>            <div id="box">  <h3 id="浙江蓝雪食品有限公司-br-nbsp-span-职位申请表-lt-gt-span">浙江蓝雪食品有限公司<br /><span>职位申请表<1></span></h3>  <table>	<tr>    	<td class="tit" colspan="4">申请部门/职位</td>    	<td width="10%" rowspan="4"> </td>  	</tr>    <tr>    	<td width="13%">第一选择:</td>    	<td width="28%"><input type="text" name="firstChoice"  /></td>    	<td width="12%">第二选择:</td>    	<td width="37%"><input type="text" name="firstChoice"  /></td>   	</tr>    <tr>    	<td>期望年收入:</td>    	<td><input type="text" name="hopepay"  />;</td>    	<td>可上任日期:</td>    	<td><input type="text" name="date"  /></td>   	</tr>    <tr>    	<td>介绍人:</td>    	<td colspan="3"><input type="text" name="introducer"  /></td>   	</tr>  </table>  <table class="cls">      <tr>        <td colspan="10" class="tit">个人资料</td>      </tr>      <tr>        <td width="13%">姓名:</td>        <td width="11%"><input type="text" name="name"  /></td>        <td width="6%">性别:</td>        <td width="11%"><input type="text" name="sex"  /></td>        <td width="10%">年龄:</td>        <td width="9%"><input type="text" name="age"  /></td>        <td width="12%">身高:</td>        <td width="9%"><input type="text" name="height"  /></td>        <td width="9%">婚姻情况:</td>        <td width="10%"><input type="text" name="marriage"  /></td>      </tr>      <tr>        <td>出生日期:</td>        <td><input type="text" name="birthdate"  /></td>        <td> </td>        <td> </td>        <td>出生地点:</td>        <td><input type="text" name="birthplace"  /></td>        <td>身份证号码:</td>        <td colspan="3"><input type="text" name="idnum"  /></td>      </tr>      <tr>        <td>户籍住址:</td>        <td colspan="7"><input type="text" name="domicileplace"  /></td>        <td>邮编:</td>        <td><input type="text" name="Postal"  /></td>      </tr>      <tr>        <td>现在住址:</td>        <td colspan="7"><input type="text" name="Address"  /></td>        <td>邮编:</td>        <td><input type="text" name="Address"  /></td>      </tr>      <tr>        <td>个人联系方式:</td>        <td colspan="5"><input type="text" name="tel"  /></td>        <td>电子邮件:</td>        <td colspan="3"><input type="text" name="email"  /></td>      </tr>    </table>	<table class="cls2">      <tr>        <td colspan="5" class="tit">家庭主要成员/亲友(供必要时联络)</td>      </tr>      <tr>        <td>姓名</td>        <td>关系</td>        <td>年龄</td>        <td>公司/职位</td>        <td>联系号码</td>      </tr>      <tr>        <td><input type="text" name="name1"  /></td>        <td><input type="text" name="relation1"  /></td>        <td><input type="text" name="age1"  /></td>        <td><input type="text" name="position1"  /></td>        <td><input type="text" name="tel1"  /></td>      </tr>      <tr>        <td><input type="text" name="name2"  /></td>        <td><input type="text" name="relation2"  /></td>        <td><input type="text" name="age2"  /></td>        <td><input type="text" name="position2"  /></td>        <td><input type="text" name="tel2"  /></td>      </tr>      <tr>        <td><input type="text" name="name3"  /></td>        <td><input type="text" name="relation3"  /></td>        <td><input type="text" name="age3"  /></td>        <td><input type="text" name="position3"  /></td>        <td><input type="text" name="tel3"  /></td>      </tr>    </table>	<table class="cls3">      <tr>        <td colspan="4" class="tit">工作经历(先填写现任公司,要求依次如实填写)</td>      </tr>      <tr>        <td>期间(年/月)</td>        <td>公司及职位</td>        <td>离职原因(详细填写)</td>        <td>证明人及联系方式</td>      </tr>      <tr>        <td><input type="text" name="date1"  /></td>        <td><input type="text" name="posi1"  /></td>        <td><input type="text" name="reason1"  /></td>        <td><input type="text" name="certify1"  /></td>      </tr>      <tr>        <td><input type="text" name="date2"  /></td>        <td><input type="text" name="posi2"  /></td>        <td><input type="text" name="reason2"  /></td>        <td><input type="text" name="certify2"  /></td>      </tr>      <tr>        <td><input type="text" name="date3"  /></td>        <td><input type="text" name="posi3"  /></td>        <td><input type="text" name="reason3"  /></td>        <td><input type="text" name="certify3"  /></td>      </tr>      <tr>        <td><input type="text" name="date4"  />;</td>        <td><input type="text" name="posi4"  /></td>        <td><input type="text" name="reason4"  /></td>        <td><input type="text" name="certify4"  /></td>      </tr>    </table>  <h3 id="span-职位申请表-lt-gt-span"><span>职位申请表<2></span></h3>    <table>  <tr>    <td colspan="8" class="tit">教育经历(先填写最近所受教育,不多于3个)</td>    </tr>  <tr>    <td colspan="2">期间(年/月)</td>    <td colspan="2" align="center">毕业院校</td>    <td width="11%" align="center">专业</td>    <td width="19%" align="center">学位/证书</td>    <td width="30%" colspan="2" align="center">证明人/联系方式</td>  </tr>  <tr>    <td colspan="2"><input type="text" name="edudate1"  /></td>    <td colspan="2"><input type="text" name="school1"  />;</td>    <td><input type="text" name="profess1"  /></td>    <td><input type="text" name="degree1"  /></td>    <td colspan="2"><input type="text" name="cer1"  />;</td>  </tr>  <tr>    <td colspan="2"><input type="text" name="edudate2"  /></td>    <td colspan="2"><input type="text" name="school2"  />;</td>    <td><input type="text" name="profess2"  /></td>    <td><input type="text" name="degree2"  /></td>    <td colspan="2"><input type="text" name="cer2"  /></td>  </tr>  <tr>    <td colspan="2"><input type="text" name="edudate3"  /></td>    <td colspan="2"><input type="text" name="school3"  /> </td>    <td><input type="text" name="profess3"  /></td>    <td><input type="text" name="degree3"  /></td>    <td colspan="2"><input type="text" name="cer3"  /></td>  </tr>  <tr>    <td colspan="8" class="tit">掌握外语(程度请填写听说读写程度)</td>    </tr>  <tr>    <td width="10%">第一外语</td>    <td width="10%"><input type="text" name="lan1"  />;</td>    <td width="8%" align="center">程度</td>    <td width="12%"><input type="text" name="level1"  />;</td>    <td>所获证书</td>    <td colspan="3"><input type="text" name="fordegreel1"  /></td>    </tr>  <tr>    <td>第二外语</td>    <td><input type="text" name="lan2"  /></td>    <td align="center">程度</td>    <td><input type="text" name="level2"  /></td>    <td>所获证书</td>    <td colspan="3"><input type="text" name="fordegreel2"  /></td>    </tr>  <tr>    <td colspan="8" class="tit">计算机水平</td>    </tr>  <</table><div class="note">声明:本人在此申请书中所写内容一切均正确属实, 本人申明无犯罪记录,并于入职后一个月内提供无犯罪证明,如有隐瞒虚报,愿接受无偿立即解约处分.本人愿接受公司调查上述资料之真实程度.面试时请带上原件!<input class="tj" type="submit" name="button" id="button" value="同意并提交申请" /></div></div>          </div>           </div><!--pifa_down-->        </div><!--center-->  </div><!--main_box-->  <? require_once('footer.php');?><!--footer--></div><!--main--></body></html><? include_once("bottom.php")?>
Copy after login


rt,点击提交将这个简历存放到数据库的content字段,字段类型longtext,并将input text里的内容换成普通文字。
求大神解答


回复讨论(解决方案)

兄弟你在学习是吧,别告诉我你在做项目。

替换文字是在保存到数据库之前,替换格式化验证。

你这个页面连个表单都不全,只有文本框,不好保存啊!先看看HTML基础吧~!

<form action="" ...>......</form>
Copy after login
Copy after login

兄弟你在学习是吧,别告诉我你在做项目。

替换文字是在保存到数据库之前,替换格式化验证。

你这个页面连个表单都不全,只有文本框,不好保存啊!先看看HTML基础吧~!

<form action="" ...>......</form>
Copy after login
Copy after login


我是在做项目啊,这个基础我知道啊,就是说提交以后怎么获得html
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

PHP 8.4 Installation and Upgrade guide for Ubuntu and Debian PHP 8.4 Installation and Upgrade guide for Ubuntu and Debian Dec 24, 2024 pm 04:42 PM

PHP 8.4 brings several new features, security improvements, and performance improvements with healthy amounts of feature deprecations and removals. This guide explains how to install PHP 8.4 or upgrade to PHP 8.4 on Ubuntu, Debian, or their derivati

7 PHP Functions I Regret I Didn't Know Before 7 PHP Functions I Regret I Didn't Know Before Nov 13, 2024 am 09:42 AM

If you are an experienced PHP developer, you might have the feeling that you’ve been there and done that already.You have developed a significant number of applications, debugged millions of lines of code, and tweaked a bunch of scripts to achieve op

How To Set Up Visual Studio Code (VS Code) for PHP Development How To Set Up Visual Studio Code (VS Code) for PHP Development Dec 20, 2024 am 11:31 AM

Visual Studio Code, also known as VS Code, is a free source code editor — or integrated development environment (IDE) — available for all major operating systems. With a large collection of extensions for many programming languages, VS Code can be c

Explain JSON Web Tokens (JWT) and their use case in PHP APIs. Explain JSON Web Tokens (JWT) and their use case in PHP APIs. Apr 05, 2025 am 12:04 AM

JWT is an open standard based on JSON, used to securely transmit information between parties, mainly for identity authentication and information exchange. 1. JWT consists of three parts: Header, Payload and Signature. 2. The working principle of JWT includes three steps: generating JWT, verifying JWT and parsing Payload. 3. When using JWT for authentication in PHP, JWT can be generated and verified, and user role and permission information can be included in advanced usage. 4. Common errors include signature verification failure, token expiration, and payload oversized. Debugging skills include using debugging tools and logging. 5. Performance optimization and best practices include using appropriate signature algorithms, setting validity periods reasonably,

PHP Program to Count Vowels in a String PHP Program to Count Vowels in a String Feb 07, 2025 pm 12:12 PM

A string is a sequence of characters, including letters, numbers, and symbols. This tutorial will learn how to calculate the number of vowels in a given string in PHP using different methods. The vowels in English are a, e, i, o, u, and they can be uppercase or lowercase. What is a vowel? Vowels are alphabetic characters that represent a specific pronunciation. There are five vowels in English, including uppercase and lowercase: a, e, i, o, u Example 1 Input: String = "Tutorialspoint" Output: 6 explain The vowels in the string "Tutorialspoint" are u, o, i, a, o, i. There are 6 yuan in total

How do you parse and process HTML/XML in PHP? How do you parse and process HTML/XML in PHP? Feb 07, 2025 am 11:57 AM

This tutorial demonstrates how to efficiently process XML documents using PHP. XML (eXtensible Markup Language) is a versatile text-based markup language designed for both human readability and machine parsing. It's commonly used for data storage an

Explain late static binding in PHP (static::). Explain late static binding in PHP (static::). Apr 03, 2025 am 12:04 AM

Static binding (static::) implements late static binding (LSB) in PHP, allowing calling classes to be referenced in static contexts rather than defining classes. 1) The parsing process is performed at runtime, 2) Look up the call class in the inheritance relationship, 3) It may bring performance overhead.

What are PHP magic methods (__construct, __destruct, __call, __get, __set, etc.) and provide use cases? What are PHP magic methods (__construct, __destruct, __call, __get, __set, etc.) and provide use cases? Apr 03, 2025 am 12:03 AM

What are the magic methods of PHP? PHP's magic methods include: 1.\_\_construct, used to initialize objects; 2.\_\_destruct, used to clean up resources; 3.\_\_call, handle non-existent method calls; 4.\_\_get, implement dynamic attribute access; 5.\_\_set, implement dynamic attribute settings. These methods are automatically called in certain situations, improving code flexibility and efficiency.

See all articles