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

Heiße KI -Werkzeuge

Undresser.AI Undress
KI-gestützte App zum Erstellen realistischer Aktfotos

AI Clothes Remover
Online-KI-Tool zum Entfernen von Kleidung aus Fotos.

Undress AI Tool
Ausziehbilder kostenlos

Clothoff.io
KI-Kleiderentferner

Video Face Swap
Tauschen Sie Gesichter in jedem Video mühelos mit unserem völlig kostenlosen KI-Gesichtstausch-Tool aus!

Heißer Artikel

Heiße Werkzeuge

Notepad++7.3.1
Einfach zu bedienender und kostenloser Code-Editor

SublimeText3 chinesische Version
Chinesische Version, sehr einfach zu bedienen

Senden Sie Studio 13.0.1
Leistungsstarke integrierte PHP-Entwicklungsumgebung

Dreamweaver CS6
Visuelle Webentwicklungstools

SublimeText3 Mac-Version
Codebearbeitungssoftware auf Gottesniveau (SublimeText3)

Heiße Themen











PHP ist eine Skriptsprache, die auf der Serverseite weit verbreitet ist und insbesondere für die Webentwicklung geeignet ist. 1.PHP kann HTML einbetten, HTTP -Anforderungen und Antworten verarbeiten und eine Vielzahl von Datenbanken unterstützt. 2.PHP wird verwendet, um dynamische Webinhalte, Prozessformdaten, Zugriffsdatenbanken usw. mit starker Community -Unterstützung und Open -Source -Ressourcen zu generieren. 3. PHP ist eine interpretierte Sprache, und der Ausführungsprozess umfasst lexikalische Analyse, grammatikalische Analyse, Zusammenstellung und Ausführung. 4.PHP kann mit MySQL für erweiterte Anwendungen wie Benutzerregistrierungssysteme kombiniert werden. 5. Beim Debuggen von PHP können Sie Funktionen wie error_reporting () und var_dump () verwenden. 6. Optimieren Sie den PHP-Code, um Caching-Mechanismen zu verwenden, Datenbankabfragen zu optimieren und integrierte Funktionen zu verwenden. 7

PHP und Python haben jeweils ihre eigenen Vorteile, und die Wahl sollte auf Projektanforderungen beruhen. 1.PHP eignet sich für die Webentwicklung mit einfacher Syntax und hoher Ausführungseffizienz. 2. Python eignet sich für Datenwissenschaft und maschinelles Lernen mit präziser Syntax und reichhaltigen Bibliotheken.

PHP und Python haben jeweils ihre eigenen Vorteile und wählen nach den Projektanforderungen. 1.PHP ist für die Webentwicklung geeignet, insbesondere für die schnelle Entwicklung und Wartung von Websites. 2. Python eignet sich für Datenwissenschaft, maschinelles Lernen und künstliche Intelligenz mit prägnanter Syntax und für Anfänger.

PHP wird in E-Commerce, Content Management Systems und API-Entwicklung häufig verwendet. 1) E-Commerce: Wird für die Einkaufswagenfunktion und Zahlungsabwicklung verwendet. 2) Content -Management -System: Wird für die Erzeugung der dynamischen Inhalte und die Benutzerverwaltung verwendet. 3) API -Entwicklung: Wird für die erholsame API -Entwicklung und die API -Sicherheit verwendet. Durch Leistungsoptimierung und Best Practices werden die Effizienz und Wartbarkeit von PHP -Anwendungen verbessert.

PHP ist immer noch dynamisch und nimmt immer noch eine wichtige Position im Bereich der modernen Programmierung ein. 1) Einfachheit und leistungsstarke Unterstützung von PHP machen es in der Webentwicklung weit verbreitet. 2) Seine Flexibilität und Stabilität machen es ausstehend bei der Behandlung von Webformularen, Datenbankoperationen und Dateiverarbeitung; 3) PHP entwickelt sich ständig weiter und optimiert, geeignet für Anfänger und erfahrene Entwickler.

PHP ist hauptsächlich prozedurale Programmierung, unterstützt aber auch die objektorientierte Programmierung (OOP). Python unterstützt eine Vielzahl von Paradigmen, einschließlich OOP, funktionaler und prozeduraler Programmierung. PHP ist für die Webentwicklung geeignet, und Python eignet sich für eine Vielzahl von Anwendungen wie Datenanalyse und maschinelles Lernen.

PHP eignet sich für die Webentwicklung, insbesondere für die schnelle Entwicklung und Verarbeitung dynamischer Inhalte, ist jedoch nicht gut in Anwendungen auf Datenwissenschaft und Unternehmensebene. Im Vergleich zu Python hat PHP mehr Vorteile in der Webentwicklung, ist aber nicht so gut wie Python im Bereich der Datenwissenschaft. Im Vergleich zu Java wird PHP in Anwendungen auf Unternehmensebene schlechter, ist jedoch flexibler in der Webentwicklung. Im Vergleich zu JavaScript ist PHP in der Back-End-Entwicklung präziser, ist jedoch in der Front-End-Entwicklung nicht so gut wie JavaScript.

PHP und Python haben ihre eigenen Vor- und Nachteile, und die Wahl hängt von den Projektbedürfnissen und persönlichen Vorlieben ab. 1.PHP eignet sich für eine schnelle Entwicklung und Wartung großer Webanwendungen. 2. Python dominiert das Gebiet der Datenwissenschaft und des maschinellen Lernens.
