• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

PHP form_errors函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中form_errors函数的典型用法代码示例。如果您正苦于以下问题:PHP form_errors函数的具体用法?PHP form_errors怎么用?PHP form_errors使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了form_errors函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: message

<?php 
$layout_context = "admin";
$active_menu = "admin";
$stylesheets = "";
$javascript = "";
include "../includes/layouts/header_2.php";
include "../includes/layouts/nav.php";
?>


<div class="row">
    <?php 
echo message();
?>
    <?php 
echo form_errors($errors);
?>
</div>


<div class="col-md-6 col-md-offset-2  col-lg-6 col-md-offset-2">

    <div class ="background_light_blue">

  <form id="" class="form-horizontal" action="<?php 
echo $_SERVER['PHP_SELF'];
?>
" method="POST">
 <!-- <li>
     <a href="index.php">&laquo; Public area</a><br />
    </li>-->
开发者ID:kamy333,项目名称:photo_gallery,代码行数:31,代码来源:login_lost_pwd.php


示例2: form_errors

     $ausgaben["inaccessible"] = "inaccessible values:<br />";
     $ausgaben["inaccessible"] .= "# (error_result) #(error_result)<br />";
     $ausgaben["inaccessible"] .= "# (error_captcha) #(error_captcha)<br />";
     $ausgaben["inaccessible"] .= "# (error_dupe) #(error_dupe)<br />";
     $ausgaben["inaccessible"] .= "# (success) #(success)<br />";
     $ausgaben["inaccessible"] .= "# (referer) #(referer)<br />";
 } else {
     $ausgaben["inaccessible"] = "";
 }
 // wohin schicken
 #n/a
 // +++
 // page basics
 if ($environment["parameter"][2] == "verify" && ($HTTP_POST_VARS["send"] != "" || $HTTP_POST_VARS["extension1"] != "" || $HTTP_POST_VARS["extension2"] != "")) {
     // form eigaben pruefen
     form_errors($form_options, $HTTP_POST_VARS);
     if (is_array($cfg["kontakt"]["captcha"])) {
         if ($_POST["captcha_proof"] != crc32($_POST["captcha"] . $cfg["kontakt"]["captcha"]["randomize"]) || !file_exists($captcha_path_srv . "captcha-" . $_POST["captcha_proof"] . ".png")) {
             $ausgaben["form_error"] .= "#(error_captcha)";
             $dataloop["form_error"]["captcha"]["text"] = "#(error_captcha)";
             $hidedata["captcha"]["class"] = "form_error";
             $hidedata["form_error"] = array();
         }
         if (file_exists($captcha_path_srv . "captcha-" . $_POST["captcha_proof"] . ".png")) {
             unlink($captcha_path_srv . "captcha-" . $_POST["captcha_proof"] . ".png");
         }
     }
     // evtl. zusaetzliche datensatz anlegen
     if ($ausgaben["form_error"] == "") {
         // kunde
         if ($HTTP_POST_VARS[$cfg["kontakt"]["email"]["form_email_feld"]] == "") {
开发者ID:BackupTheBerlios,项目名称:ewebuki-svn,代码行数:31,代码来源:kontakt.inc.php


示例3: array

}
$_SESSION["errors"] = array();
$_SESSION["message"] = "";
login_process();
?>

		<login>
			<h1>Login</h1>

			<?php 
echo $_SESSION["message"];
?>
			<br />

			<?php 
echo form_errors($_SESSION["errors"]);
?>
			<form action="login.php" method="post"><br />
				Name:
				<br /><input type="text" name="username" value="
				<?php 
if (isset($_SESSION["username"])) {
    echo htmlspecialchars($_SESSION["username"]);
}
?>
				"/>
				<br />Password:<br /><input type="password" name="password" value="" /><br /><br />
				<input class="big" type="submit" name="submit" value="Login"/><br /><br />
				<a href="signup.php"> Do not have an account? Sign up!</a>
			</form>
开发者ID:Windrill,项目名称:SMICTrades,代码行数:30,代码来源:login.php


示例4: include_partial

include_partial('home/homeSide');
?>

  <div class="col-main">
	<div class="col-box col-box-top block">

		<h2>Request a New Password</h2>

		<p>	Did you forget your password?
		
		<p> Enter your username and you will receive
			a new password by email.
		</p>
		
		<?php 
echo form_errors();
?>
		
		<?php 
echo form_tag('@request_password', array('class' => 'block'));
?>

		<ul>
		<li><span class="lbl"><?php 
echo label_for('username', 'Username');
?>
</span>
			<span class="fld medium"><?php 
echo input_tag('username', '', array('class' => 'textfield'));
?>
</span>
开发者ID:kc5nra,项目名称:RevTK,代码行数:31,代码来源:requestPasswordView.php


示例5: form_errors

 // bereich im template sichtbar machen
 $hidedata[$cfg["autoform"]["location"][$environment["ebene"]]["db"]][0] = "enable";
 $hidedata["form"][0] = "enable";
 // "form referer"
 if ($_POST["last_viewed"] != "") {
     $ausgaben["last_viewed"] = $_POST["last_viewed"];
 } else {
     $ausgaben["last_viewed"] = $_SERVER["HTTP_REFERER"];
 }
 // +++
 // funktions bereich
 // page basics
 // ***
 if ($environment["parameter"][1] == "verify" && $_POST["send"] != "") {
     // form eigaben pruefen
     form_errors($form_options, $_POST);
     // hier wird die captcha-eingabe geprueft
     if ($cfg["autoform"]["location"][$environment["ebene"]]["captcha"]) {
         if ($_POST["captcha_proof"] != crc32($_POST["captcha"] . $cfg["autoform"]["captcha"]["randomize"]) || !file_exists($captcha_path_srv . "captcha-" . $_POST["captcha_proof"] . ".png")) {
             $ausgaben["form_error"] .= "#(error_captcha)";
             $dataloop["form_error"]["captcha"]["text"] = "#(error_captcha)";
             $hidedata["captcha"]["class"] = "form_error";
         }
         if (file_exists($captcha_path_srv . "captcha-" . $_POST["captcha_proof"] . ".png")) {
             unlink($captcha_path_srv . "captcha-" . $_POST["captcha_proof"] . ".png");
         }
     }
     // hier erfolgt der mail-versand bzw db-eintrag
     if ($ausgaben["form_error"] == "") {
         if ($mail_order == -1) {
             if ($confirm == -1) {
开发者ID:BackupTheBerlios,项目名称:ewebuki-svn,代码行数:31,代码来源:autoform-list.inc.php


示例6: basename

    $img_var = basename($_FILES["img"]["name"]);
    move_uploaded_file($_FILES["img"]["tmp_name"], $target_file);
    //image upload
    $name_fields_presence = array("username", "password", "email", "first_name", "last_name", "pno", "employement", "employer", "street", "city", "state", "zip", "fax", "street1", "zip1", "fax1");
    all_prestnt($name_fields_presence);
    //values are present or not
    $fields_max_length = array("username" => 20, "password" => 40, "first_name" => 20, "last_name" => 20, "pno" => 15);
    validate_max_lengths($fields_max_length);
    //max length check
    $fields_min_length = array("username" => 8, "password" => 8, "email" => 8, "pno" => 9);
    validate_min_lengths($fields_min_length);
    if (!preg_match('/^[a-z0-9_-]+@[a-z0-9._-]+\\.[a-z]+$/i', $email)) {
        $errors["email"] = " wrong" . ucfirst("email") . " pattern ";
    }
    //email format checking//for email varification;
    $output = form_errors($errors);
    //end of validations
    if (!$output) {
        $activate = md5(uniqid(rand(), true));
        //creating new unique activation code
        $q = "UPDATE reg SET user_name='{$username}', \n\t\t\t\t\tpassword='{$password}', \n\t\t\t\t\temail_id='{$email}', \n\t\t\t\t\tfirst_name='{$first_name}', \n\t\t\t\t\tlast_name='{$last_name}', \n\t\t\t\t\tmiddle_name='{$middle_name}', \n\t\t\t\t\tph_no='{$pno}',  \n\t\t\t\t\temployement='{$employement}', \n\t\t\t\t\temployer='{$employer}', \n\t\t\t\t\tstreet='{$street}', \n\t\t\t\t\tcity='{$city}', \n\t\t\t\t\tstate='{$state}', \n\t\t\t\t\tzip='{$zip}', \n\t\t\t\t\tfax='{$fax}', \n\t\t\t\t\tstreet1='{$street1}', \n\t\t\t\t\tcity1='{$city1}', \n\t\t\t\t\tstate1='{$state1}', \n\t\t\t\t\tzip1='{$zip1}', \n\t\t\t\t\tfax1='{$fax1}', \n\t\t\t\t\tcomment='{$comment}', \n\t\t\t\t\tdob='{$dob}', \n\t\t\t\t\timg='{$img_var}' WHERE id='{$id}'";
        if (mysqli_query($connection, $q)) {
            header("Location:detail.php");
        } else {
            ?>
<div class="colo"><?php 
            echo "Error: " . $q . "<br>" . mysqli_error($connection);
            ?>
</div><?php 
        }
    } else {
开发者ID:raj143225,项目名称:Assignment,代码行数:31,代码来源:update.php


示例7: elseif

     $ausgaben["form_referer"] = $HTTP_GET_VARS["referer"];
     $ausgaben["form_break"] = $ausgaben["form_referer"];
 } elseif ($HTTP_POST_VARS["form_referer"] == "") {
     $ausgaben["form_referer"] = $_SERVER["HTTP_REFERER"];
     $ausgaben["form_break"] = $ausgaben["form_referer"];
 } else {
     $ausgaben["form_referer"] = $HTTP_POST_VARS["form_referer"];
     $ausgaben["form_break"] = $ausgaben["form_referer"];
 }
 if ($environment["parameter"][2] == "verify") {
     // form eingaben prüfen
     #bugfix#form_errors( $form_options, $HTTP_POST_VARS );
     #echo "<pre>";
     #print_r($form_values);
     #echo "</pre>";
     form_errors($form_options, $form_values);
     // ohne fehler sql bauen und ausfuehren
     if ($ausgaben["form_error"] == "") {
         #echo "ja";
         $kick = array("PHPSESSID", "submit", "image", "image_x", "image_y", "form_referer", "add", "add_x", "add_y", "delete", "delete_x", "delete_y", "akfggeb", "akfgstart");
         foreach ($form_values as $name => $value) {
             if (!in_array($name, $kick) && !strstr($name, ")")) {
                 if ($sqla != "") {
                     $sqla .= ", ";
                 }
                 $sqla .= $name . "='" . $value . "'";
             }
         }
         // Sql um spezielle Felder erweitern
         $sql = "update " . $cfg["db"]["entries"] . " SET " . $sqla . " WHERE " . $cfg["db"]["key"] . "='" . $wert . "'";
         if ($debugging["html_enable"]) {
开发者ID:BackupTheBerlios,项目名称:ewebuki-svn,代码行数:31,代码来源:fileed-describe.inc.php


示例8: message

			<li><a href="search.php" class="button">Search</a></li>
		</ul>
	</div>
</section>
</header>
<!-- Main -->
<article id="main">
	
	<section class="wrapper style5">
		<div class = "container-body">
			<div class="inner">
				<?php 
echo message();
?>
				<?php 
echo form_errors(error_messages());
?>
				<section>
					<form method="post" action="#">
						<?php 
if (isset($_GET["jumperid"])) {
    $query = "Select * from jumperdr where intJumperID = {$_GET["jumperid"]} limit 1";
    $result = mysqli_query($connection, $query);
    if (!$result) {
        die("database failed at layou1_edit form starting." . mysqli_error($connection));
    }
    $row = mysqli_fetch_assoc($result);
    $query2 = "Select * from tabTag where chUnit = '{$row["chUnit"]}' and vcSubSystem = '{$row["vcSubsystem"]}' and vcSystem = '{$row["vcSystem"]}' and vcSystemNo = '{$row["vcSystemNo"]}' and vcEqpt = '{$row["vcEqpt"]}' and vcEqptNo = '{$row["vcEqptNo"]}'";
    $result2 = odbc_exec($connection2, $query2);
    if (!$result2) {
        die("database odbc failed at layou1_edit form starting.");
开发者ID:ashk43712,项目名称:Jumper,代码行数:31,代码来源:layout1.php


示例9: form_errors

<title>EDFC | Admin - Add an Event</title>
<link rel="stylesheet" href="../css/normalize.css"/>
  <link rel="stylesheet" href="../css/foundation.css" />
<link href='https://fonts.googleapis.com/css?family=Montserrat:400,700' rel='stylesheet' type='text/css'>
  <link rel="stylesheet" href="css/main.css"/></head>
<body>

<div class="small-12 medium-12 large-12 columns cms_section">

<h2>Add an Event</h2>
<?php 
if (!empty($message)) {
    echo "<div class=\"admin_message\">" . $message . "</div>";
}
if (!empty($errors)) {
    echo "<div class=\"admin_message\">" . form_errors($errors) . "</div>";
}
?>
<form action="admin_addEvent.php" method="post" enctype="multipart/form-data">
	<label>Event name:</label>
	<input type="text" name="name" value="">

	<label>Event date</label>
	<select name="month" id="month">
	  <option value="">--Month--</option>
	  <option value="01">January</option>
	  <option value="02">February</option>
	  <option value="03">March</option>
	  <option value="04">April</option>
	  <option value="05">May</option>
	  <option value="06">June</option>
开发者ID:jocchann,项目名称:edfc,代码行数:31,代码来源:admin_addEvent.php


示例10: form

</h1>
		<?php 
} else {
    ?>
			<h1>Create New Post</h1>
		<?php 
}
?>

		
		<?php 
echo form();
?>
		
			<?php 
echo form_errors('*');
?>

			<div>
				<?php 
echo label('title', 'Title: ');
?>
				<?php 
echo input('title');
?>
			</div>
			
			<div>
				<?php 
echo label('content', 'Content: ');
?>
开发者ID:qlixes,项目名称:springphp,代码行数:31,代码来源:editpost.php


示例11: form_errors

&view=hsys_users2&do=details" title="View Details" class="btn btn-default btn-sm tip"><i class="fa fa-th-list"></i> <?php 
echo LANG_DETAILS;
?>
</a>
	
	</ul>
	<div class="panel panel-default">
  <!-- Default panel contents -->
  <div class="panel-heading"><h3 class="panel-title"><i class="fa fa-reorder"></i> <strong>Change Password</strong></h3></div>
  <div class="panel-body pformmargin">
	
	  
	 <p>
     <?php 
if (isset($errors)) {
    form_errors($errors);
}
?>
	 <form action="<?php 
htmlspecialchars($_SERVER['PHP_SELF']);
?>
" method="post" name="hezecomform" id="hezecomform2" enctype="multipart/form-data">
	<input type="hidden" name="userid" value="<?php 
echo $haccess->UserID();
?>
">
     
     <div class="form-group">
    <label class="control-label" for="oldpassword">Old Password</label>
	<input id="oldpassword" name="oldpassword" type="password" maxlength="50" class="form-control styler" placeholder="Enter your old password" required="required" />
	</div>
开发者ID:fcdeveloper,项目名称:globalreachrx,代码行数:31,代码来源:ChangePwd2.php


示例12: validation_errors

<p></p>
<?php 
echo validation_errors('<div class="alert alert-error"><button type="button" class="close" data-dismiss="alert"><i class="fa fa-times"></i></button>', '</div>');
?>
<script>
$(function(){
	form_error = [];
	<?php 
if ($errs = form_errors()) {
    foreach ($errs as $key => $value) {
        echo "form_error.push('" . $key . "');";
    }
}
?>
	$.each(form_error, function(i, v) {
		// TODO: bug  按照 input id 结构来处理
		// $('label[for='+v+']').parent(".control-group").addClass('error')
		$('#'+v).parents(".control-group").addClass('error');
	});
});
</script>
开发者ID:PoppyLi,项目名称:PCMS,代码行数:21,代码来源:inc_form_errors.php


示例13: form_errors

    // This is probably a get request
}
?>

<div id="main">

	<!-- LEFT SIDE -->
	<div id="navigation">

	</div>

	<!-- RIGHT SIDE -->
	<div id="page">
		<!-- Prints out the stuff in $_SESSION["errors"] -->
		<?php 
echo form_errors(errors());
?>
		<h2>Create Admin</h2>
		<form action="new_admin.php" method="post">
			<p>Username:
				<input type="text" name="username" value="" />
			</p>
			<p>Password:
				<input type="password" name="password" value="" />
			</p>
			<input type="submit" name="submit" value="Create Admin" />
		</form>
		<br />
		<a href="manage_admins.php">Cancel</a>
	</div>
开发者ID:Captainlonate,项目名称:CaptoCMS,代码行数:30,代码来源:new_admin.php


示例14: form_errors

<div class="outerwrapper">
	<div class="wrapper">
	<div class="myacctellusholder"></div>
	<div class="logo"><a href="http://lib.harvard.edu"><img alt="Harvard Library Logo" src="http://library.harvard.edu/sites/all/themes/HarvardLibraryPortalTheme/logo.png"></a></div>
	<div class="divider"></div>
	<div class="breadcrumbs"> 
		<p><a href="http://lib.harvard.edu" title="Home">Home</a> > Harvard Library E-Card </p>
	</div>
	<?php 
print $preview;
?>
	<?php 
print $success;
?>
	<?php 
print form_errors($errors);
?>
		<div class="container" align="center">
		<h1>Send a Holiday E-Card from the Harvard Library</h1>
		<div class="form_box">
			<div align="left" class="form_inner">
				To send your card:<br />
					<ol>
						<li>Select one of the images below from the Harvard Library collection.</li>
						<li>Enter your personal message along with the "from" and "to" information.</li>
						<li><em>Optional</em>: Click "Preview Your E-Card" to see how your card will look before sending.</li>
						<li>Click "Send Your Harvard Library E-Card."</li>
					</ol><br />
				<form action="ecard.php" method="post">
					<p><label for="image_select" style="font-size: 14px;">Select an image below</label><span class="crimson">*</span>
											<table id="image_select">
开发者ID:KathleenImbert,项目名称:ecard-generator,代码行数:31,代码来源:ecard.php


示例15: form_errors

     $ausgaben["inaccessible"] .= "# (error1) #(error1)<br />";
     $ausgaben["inaccessible"] .= "# (error_plz_nope) #(error_plz_nope)<br />";
     $ausgaben["inaccessible"] .= "# (error_plz_multi) #(error_plz_multi)<br />";
     $ausgaben["inaccessible"] .= "# (error_gmkg) #(error_gmkg)<br />";
     $ausgaben["inaccessible"] .= "# (success) #(success)<br />";
 } else {
     $ausgaben["inaccessible"] = "";
 }
 // wohin schicken
 #n/a
 // +++
 // page basics
 if ($environment["parameter"][3] == "verify" && ($_POST["send"] != "" || $_POST["extension1"] != "" || $_POST["extension2"] != "")) {
     // form eingaben pr�fen
     form_errors($form_options, $_POST);
     form_errors($form_options, $_POST["person"]);
     if ($ausgaben["form_error"] == "") {
         foreach ($_POST["person"] as $key => $value) {
             ${$key} = $value;
         }
         if (is_array($_POST["order"])) {
             foreach ($_POST["order"] as $key => $value) {
                 if ($value["flst"] == "") {
                     continue;
                 }
                 if ($value["flst"] != "" && $value["gmkg"] == "") {
                     $ausgaben["form_error"] .= "#(error_gmkg)<br />";
                     break;
                 }
                 foreach ($value as $label => $order_data) {
                     $dataloop["order"][$key][$label] = strtoupper($order_data);
开发者ID:BackupTheBerlios,项目名称:ewebuki-bvv-svn,代码行数:31,代码来源:katauszug.inc.php



注:本文中的form_errors函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP form_field函数代码示例发布时间:2022-05-15
下一篇:
PHP form_error函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap