Follow us on Twitter!
It is the path of least resistance that makes rivers and men crooked. - Bj Palmer
Saturday, April 19, 2014
Navigation
Home
HellBoundHackers Main:
HellBoundHackers Find:
HellBoundHackers Information:
Learn
Communicate
Submit
Shop
Challenges
HellBoundHackers Exploit:
HellBoundHackers Programming:
HellBoundHackers Think:
HellBoundHackers Track:
HellBoundHackers Patch:
HellBoundHackers Other:
HellBoundHackers Need Help?
Other
Members Online
Total Online: 27
Guests Online: 27
Members Online: 0

Registered Members: 82843
Newest Member: hx47
Latest Articles
View Thread

HellBound Hackers | Computer General | Webmasters Lounge

Author

PHP multiple forms?


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 19-02-07 18:12
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?


Author

RE: PHP multiple forms?


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 19-02-07 18:13
How about some example code to go with the question?
Would be a lot easier to help then shotgun troubleshooting.




Edited by on 19-02-07 18:13
Author

RE: PHP multiple forms?


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 19-02-07 18:21
uh.....

Code

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

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





emailform.php:
Code

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

....code to process this







Author

RE: PHP multiple forms?


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 19-02-07 18:26
Have you closed the form tag?

Is the code compliant?


Author

RE: PHP multiple forms?


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 19-02-07 18:34
heh....forgot to close the form. thanks Smile


Author

RE: PHP multiple forms?


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 19-02-07 18:57
Didn't Firefox register an error (like it does on HBH)

HBH really need to sort out quirks mode




Edited by on 19-02-07 18:57