小编Fos*_*osa的帖子

用例中的前提条件

我正在为学校的项目创建一个用例.我有点困惑的前提条件选项卡.

在某些方面确实有一个先决条件,如"必须登录"或"需要一个帐户"

但是,如果软件是本地设置怎么办?

对我而言,听起来逻辑是前提条件是"需要安装软件"

但另一方面,这个前提条件看起来很奇怪,否则你首先就不会有这个用例.

所以我的问题很简短.系统要求或软件安装是否可以作为前提条件的一部分?

uml use-case

7
推荐指数
1
解决办法
8108
查看次数

无法访问文件:C:\wamp\tmp\file.tmp

PHP脚本:

    <?php

require_once '../lib/PHPMailer/PHPMailerAutoload.php';

function clean_string($string) {
$bad = array("content-type","bcc:","to:","cc:","href");
return str_replace($bad,"",$string);
}

if(isset($_POST['email'])) {

    // EDIT THE 2 LINES BELOW AS REQUIRED
    //$email_to = "hidden";
    //$email_subject = "Request for Portfolio check up from ".$first_name." ".$last_name;

    $title = array('Geslacht', 'Meneer', 'Mevrouw');
    $selected_key = $_POST['title'];
    $selected_val = $title[$_POST['title']]; 

    $first_name = $_POST['first_name']; // required
    $last_name = $_POST['last_name']; // required
    $email_from = $_POST['email']; // required
    $telephone = $_POST['telephone']; // not required
    $comments = $_POST['comments']; // required

     $email_message = "";
    $email_message .="Title: ".$selected_val."\n";
    $email_message …
Run Code Online (Sandbox Code Playgroud)

php phpmailer

0
推荐指数
1
解决办法
1268
查看次数

检查具有Placeholder PHP的表单的值

我想实现这个目标:

如果表单中的输入包含占位符的标准值.在这种情况下"没有收到邀请......",那么包含输入值的变量也可能是:"没有收到邀请......"

但是,如果用户覆盖占位符并提供电子邮件地址,则该相同变量必须成为该电子邮件地址.

这是我的形式:它在荷兰...对不起

<label for="invite">Email contact invitation</label>
    <input name="invite" type="text" id="invite" style="width:200px"
             placeholder="did not receive invitation..."/><br/>
Run Code Online (Sandbox Code Playgroud)

这是我的PHP:

if (!empty($_GET['invite'])) {
   $invitation = filter_input(INPUT_POST, 'invite');
} else {
    $invitation = "did not receive invitation...";  
}
Run Code Online (Sandbox Code Playgroud)

出于某种原因,我的输出总是:

没有收到邀请......

即使我填写了一个电子邮件地址..

有什么建议 ?

编辑...完整表格代码:

<form class="cmxform" id="Offerteform" method="post" action="<?php echo $_SERVER['PHP_SELF'] ?>" enctype="multipart/form-data">
  <div>

    <label for="Uitnodiging">Email contact uitnodiging</label>
    <input name="Uitnodiging" type="text" id="Uitnodiging" style="width:200px" placeholder="Geen uitnodiging ontvangen..." />
    <br/>

    <label for="Soort_Werken">Soort Werken</label>
    <select name="Soort Werken" id="Soort_Werken" style="width:200px" title="Selecteer iets AUB!" required>
      <option selected="selected" value="">Selecteer...</option> …
Run Code Online (Sandbox Code Playgroud)

html php post

0
推荐指数
1
解决办法
159
查看次数

标签 统计

php ×2

html ×1

phpmailer ×1

post ×1

uml ×1

use-case ×1