搜索
首页后端开发php教程php获得页面所有html内容,并将input text里的内容换成普通文字

<? 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/imghwm/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-imghwm-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/imghwm/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")?>


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


回复讨论(解决方案)

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

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

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

<form action="" ...>......</form>

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

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

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

<form action="" ...>......</form>


我是在做项目啊,这个基础我知道啊,就是说提交以后怎么获得html
声明
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
php怎么把负数转为正整数php怎么把负数转为正整数Apr 19, 2022 pm 08:59 PM

php把负数转为正整数的方法:1、使用abs()函数将负数转为正数,使用intval()函数对正数取整,转为正整数,语法“intval(abs($number))”;2、利用“~”位运算符将负数取反加一,语法“~$number + 1”。

php怎么实现几秒后执行一个函数php怎么实现几秒后执行一个函数Apr 24, 2022 pm 01:12 PM

实现方法:1、使用“sleep(延迟秒数)”语句,可延迟执行函数若干秒;2、使用“time_nanosleep(延迟秒数,延迟纳秒数)”语句,可延迟执行函数若干秒和纳秒;3、使用“time_sleep_until(time()+7)”语句。

php怎么除以100保留两位小数php怎么除以100保留两位小数Apr 22, 2022 pm 06:23 PM

php除以100保留两位小数的方法:1、利用“/”运算符进行除法运算,语法“数值 / 100”;2、使用“number_format(除法结果, 2)”或“sprintf("%.2f",除法结果)”语句进行四舍五入的处理值,并保留两位小数。

php怎么根据年月日判断是一年的第几天php怎么根据年月日判断是一年的第几天Apr 22, 2022 pm 05:02 PM

判断方法:1、使用“strtotime("年-月-日")”语句将给定的年月日转换为时间戳格式;2、用“date("z",时间戳)+1”语句计算指定时间戳是一年的第几天。date()返回的天数是从0开始计算的,因此真实天数需要在此基础上加1。

php怎么替换nbsp空格符php怎么替换nbsp空格符Apr 24, 2022 pm 02:55 PM

方法:1、用“str_replace("&nbsp;","其他字符",$str)”语句,可将nbsp符替换为其他字符;2、用“preg_replace("/(\s|\&nbsp\;||\xc2\xa0)/","其他字符",$str)”语句。

php怎么判断有没有小数点php怎么判断有没有小数点Apr 20, 2022 pm 08:12 PM

php判断有没有小数点的方法:1、使用“strpos(数字字符串,'.')”语法,如果返回小数点在字符串中第一次出现的位置,则有小数点;2、使用“strrpos(数字字符串,'.')”语句,如果返回小数点在字符串中最后一次出现的位置,则有。

php字符串有没有下标php字符串有没有下标Apr 24, 2022 am 11:49 AM

php字符串有下标。在PHP中,下标不仅可以应用于数组和对象,还可应用于字符串,利用字符串的下标和中括号“[]”可以访问指定索引位置的字符,并对该字符进行读写,语法“字符串名[下标值]”;字符串的下标值(索引值)只能是整数类型,起始值为0。

php怎么设置implode没有分隔符php怎么设置implode没有分隔符Apr 18, 2022 pm 05:39 PM

在PHP中,可以利用implode()函数的第一个参数来设置没有分隔符,该函数的第一个参数用于规定数组元素之间放置的内容,默认是空字符串,也可将第一个参数设置为空,语法为“implode(数组)”或者“implode("",数组)”。

See all articles

热AI工具

Undresser.AI Undress

Undresser.AI Undress

人工智能驱动的应用程序,用于创建逼真的裸体照片

AI Clothes Remover

AI Clothes Remover

用于从照片中去除衣服的在线人工智能工具。

Undress AI Tool

Undress AI Tool

免费脱衣服图片

Clothoff.io

Clothoff.io

AI脱衣机

AI Hentai Generator

AI Hentai Generator

免费生成ai无尽的。

热门文章

R.E.P.O.能量晶体解释及其做什么(黄色晶体)
2 周前By尊渡假赌尊渡假赌尊渡假赌
仓库:如何复兴队友
4 周前By尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island冒险:如何获得巨型种子
4 周前By尊渡假赌尊渡假赌尊渡假赌

热工具

螳螂BT

螳螂BT

Mantis是一个易于部署的基于Web的缺陷跟踪工具,用于帮助产品缺陷跟踪。它需要PHP、MySQL和一个Web服务器。请查看我们的演示和托管服务。

DVWA

DVWA

Damn Vulnerable Web App (DVWA) 是一个PHP/MySQL的Web应用程序,非常容易受到攻击。它的主要目标是成为安全专业人员在合法环境中测试自己的技能和工具的辅助工具,帮助Web开发人员更好地理解保护Web应用程序的过程,并帮助教师/学生在课堂环境中教授/学习Web应用程序安全。DVWA的目标是通过简单直接的界面练习一些最常见的Web漏洞,难度各不相同。请注意,该软件中

SublimeText3 英文版

SublimeText3 英文版

推荐:为Win版本,支持代码提示!

适用于 Eclipse 的 SAP NetWeaver 服务器适配器

适用于 Eclipse 的 SAP NetWeaver 服务器适配器

将Eclipse与SAP NetWeaver应用服务器集成。

Dreamweaver Mac版

Dreamweaver Mac版

视觉化网页开发工具