/    Sign up×
Community /Pin to ProfileBookmark

2 forms on one html page

I have a problem with putting two forms on one html page this is my coding:

[SIZE=”2<form action=/guru_website/register_landing.php method=”post” id=”1″ name=”register” >

<div class=”surounding”>
<input type=”text” value=”Enter username” size=”10″ name=”rusername”/>
</div>

<div class=”surounding”>
<input type=”text” value=”Enter password” size=”10″ name=”rpassword”/>
</div>

<div class=”surounding”>
<input type=”text” value=”Retype password” size=”10″ name=”rerpassword”/>
</div>
<br/>
<div class=”register_surounding”>

<input type=”submit” value=”Register” />
</div>

</form>

</div>

<div class=”divdroite”

<form action=/guru_website/login_landing.php; method=”post” id=”2″ name=”login” >

<div class=”surounding”>
<input type=”text” value=”username” size=”10″ name=”username”/>
</div>

<div class=”surounding”>
<input type=”text” value=”password” size=”10″ name=”password”/>
</div>
<br />
<div class=”register_surounding”>

<input type=”submit” value=”Login” />
</div>

</form>[/SIZE]

this is what it looks like

[code=html]form action=/guru_website/register_landing.php method=”post” id=”1″ name=”register” >

<div class=”surounding”>
<input type=”text” value=”Enter username” size=”10″ name=”rusername”/>
</div>

<div class=”surounding”>
<input type=”text” value=”Enter password” size=”10″ name=”rpassword”/>
</div>

<div class=”surounding”>
<input type=”text” value=”Retype password” size=”10″ name=”rerpassword”/>
</div>
<br/>
<div class=”register_surounding”>

<input type=”submit” value=”Register” />
</div>

</form>

</div>

<div class=”divdroite”

<form action=/guru_website/login_landing.php; method=”post” id=”2″ name=”login” >

<div class=”surounding”>
<input type=”text” value=”username” size=”10″ name=”username”/>
</div>

<div class=”surounding”>
<input type=”text” value=”password” size=”10″ name=”password”/>
</div>
<br />
<div class=”register_surounding”>

<input type=”submit” value=”Login” />
</div>

</form>
form action=/guru_website/register_landing.php method=”post” id=”1″ name=”register” >

<div class=”surounding”>
<input type=”text” value=”Enter username” size=”10″ name=”rusername”/>
</div>

<div class=”surounding”>
<input type=”text” value=”Enter password” size=”10″ name=”rpassword”/>
</div>

<div class=”surounding”>
<input type=”text” value=”Retype password” size=”10″ name=”rerpassword”/>
</div>
<br/>
<div class=”register_surounding”>

<input type=”submit” value=”Register” />
</div>

</form>

</div>

<div class=”divdroite”

<form action=/guru_website/login_landing.php; method=”post” id=”2″ name=”login” >

<div class=”surounding”>
<input type=”text” value=”username” size=”10″ name=”username”/>
</div>

<div class=”surounding”>
<input type=”text” value=”password” size=”10″ name=”password”/>
</div>
<br />
<div class=”register_surounding”>

<input type=”submit” value=”Login” />
</div>

</form>
[/code]

but when i click on submit on the second form it doesn’t do anything it doesn’t process it
I need help please
thanks in advance

to post a comment
HTML

3 Comments(s)

Copy linkTweet thisAlerts:
@jaimegmApr 27.2012 — Ha, the answer is I don't know, however I am going to give you some ideas.

1.- Try each form separately and check if both of them work correctly.

2.- Check in different browsers (It could be related to your browser).

3.- Get ride of all the divs and check if it works without them and then start adding them one by one and check if they are working.

4.- An alternative would be to use a frame for each of them.

Good luck!
Copy linkTweet thisAlerts:
@TheAliveWinnerApr 27.2012 — [B]dirty coding... ?[/B]
Copy linkTweet thisAlerts:
@GettingSmartApr 28.2012 — [CODE]<form action=/guru_website/login_landing.php; method="post" id="2" name="login" >[/CODE]

check if it works when you remove the ; after login_landing.php
×

Success!

Help @problemetwoform spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...