Post提交按钮


post submit button php

我真的不知道为什么提交函数不起作用。我真的在努力解决这个问题。有人知道为什么这行不通吗?

<?php 
if(isset($_POST['submit'])){
    echo ("submit funkt");
}
else{
    echo ("submit funkt nicht");
}
?>
<form action="" method="get">
<div role="main" id="task-form-fill" class="ui-content">
    <label for="text-basic">Titel:</label>
    <input type="text" name="titel" id="titel" value="<?php $titel ?>">
    <label for="textarea">Beschreibung:</label>
    <textarea cols="40" rows="8" name="beschreibung" id="beschreibung" value="beschreibung"></textarea>
    <label for="date">End-Datum:</label>
    <input type="date" name="enddatum" id="datum" value="enddatum">
    <fieldset data-role="controlgroup" data-type="horizontal" data-mini="true">
        <legend>Prioritaet:</legend>
            <input type="radio" name="prio" id="radio-choice-c" value="hoch" checked="checked">
            <label for="radio-choice-c">Hoch</label>
            <input type="radio" name="prio" id="radio-choice-d" value="mittel">
            <label for="radio-choice-d">Mittel</label>
            <input type="radio" name="prio" id="radio-choice-e" value="niedrig">
            <label for="radio-choice-e">Niedrig</label>
    </fieldset>
   <button name="submit" class="ui-shadow ui-btn ui-corner-all" id="submit">Submit</button>
</form>    

要在按钮上提交表单,单击按钮类型应该是submit。

<input type='submit' name="submit" class="ui-shadow ui-btn ui-corner-all" id="submit" value='Submit'/>

谢谢。M

正如其他人提到的,如果你想要提交这个表单,你应该有以下内容:

<input type="submit" name="Submit" value="submit">

然而,你的表单不工作的原因是顶行。把

<form action="" method="get">

<form action="" method="post">

然后就可以了

请注明type= "submit" for button

  <button type="submit" name="submit" class="ui-shadow ui-btn ui-corner-all" id="submit">Submit</button>