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/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")?>
rt,点击提交将这个简历存放到数据库的content字段,字段类型longtext,并将input text里的内容换成普通文字。
求大神解答
回复讨论(解决方案)
兄弟你在学习是吧,别告诉我你在做项目。
替换文字是在保存到数据库之前,替换格式化验证。
你这个页面连个表单都不全,只有文本框,不好保存啊!先看看HTML基础吧~!
<form action="" ...>......</form>
兄弟你在学习是吧,别告诉我你在做项目。
替换文字是在保存到数据库之前,替换格式化验证。
你这个页面连个表单都不全,只有文本框,不好保存啊!先看看HTML基础吧~!
<form action="" ...>......</form>
我是在做项目啊,这个基础我知道啊,就是说提交以后怎么获得html

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

In this chapter, we will understand the Environment Variables, General Configuration, Database Configuration and Email Configuration in CakePHP.

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

To work with date and time in cakephp4, we are going to make use of the available FrozenTime class.

To work on file upload we are going to use the form helper. Here, is an example for file upload.

In this chapter, we are going to learn the following topics related to routing ?

CakePHP is an open-source framework for PHP. It is intended to make developing, deploying and maintaining applications much easier. CakePHP is based on a MVC-like architecture that is both powerful and easy to grasp. Models, Views, and Controllers gu

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

Validator can be created by adding the following two lines in the controller.
