Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.

PHP multiple forms?


ghost's Avatar
0 0

Okay….so i have a login on my site that displays on all pages, but some pages have their own forms, so if i try to log in from that page, it submittes to both forms…. any way to deal with this other than not having the login on that page?


ghost's Avatar
0 0

How about some example code to go with the question? Would be a lot easier to help then shotgun troubleshooting.


ghost's Avatar
0 0

uh…..

<form method=POST>
<input name=username>
<input type=submit>

.....more html code for the page
<?php
include("emailform.php");
?>

emailform.php:

<form method=POST>
<input name=mail>
<input type=submit>

....code to process this


ghost's Avatar
0 0

Have you closed the form tag?

Is the code compliant?


ghost's Avatar
0 0

heh….forgot to close the form. thanks :)


ghost's Avatar
0 0

Didn't Firefox register an error (like it does on HBH)

HBH really need to sort out quirks mode