Matt G
Matt G

Reputation: 1681

HTML form is not redirecting

I've written probably a dozen forms for this project but for some reason this ONE is not working. I can't discern any difference between it and any of my other forms.

By not working, I mean the page does not redirect when the submit button is clicked.

Also, the default value I try to put in the 'patient' field isn't appearing but that's not important.

It's probably something really silly like an unbalanced tag or something but I just cannot find it. Can a pair of fresh eyes help me out?

<form id='addBill' method='POST' action="/add_to_bill.php">
<table class='t' style='width:100%'>
<tr>
    <td class='tt'><p>Patient ID</p></td>
    <td class='tt'><input disabled class='t' type="numeric" name="patient" value=<?php getP('id') ?>></td>
    <td class='tt'><p>Visit ID</p></td>
    <td class='tt'><input class='t' type="numeric" name="visit"></td>
</tr>
<tr>
    <td class='tt'><p>Invoice Number</p></td>
    <td class='tt'><input class='t' type="numeric" name="invoice"></td>
    <td class='tt'><p class='t'>Due Date: (format: e.g. <?php echo "'".date('Y-m-d')."'"; ?>)</p></td>
    <td class='tt'><input class='t' type="text" name="date" value=<?php echo "'".date('Y-m-d')."'"?>></td>
</tr>
<tr>
    <td class='tt'><input class='t' type="submit" value="Go"></td>
</tr>
</table>
</form>

enter image description here

Upvotes: 0

Views: 816

Answers (1)

parkway
parkway

Reputation: 276

based on the image of the code i noticed there is a form tag without the closed form tag. there are two form tag in it, one without closed form tag which is at most top of the code and another one is at bottom

Upvotes: 1

Related Questions