Web Hosting Talk







View Full Version : aligning 2 forms right next to each other


saghir69
01-17-2005, 05:17 AM
Hi

I want to align 2 form submit buttons from 2 diferent form, right next to each other

like this

submit form1 | submit form2

ok i'll go in detail of what i'm trying to do,
basically i need a form button to act as a link, form1 submits info to a proccessing page. but form2 doesn't need to submit any info, so i just want it to act as a link to say page2 . but i don't want to use javascript as this will be the only place this button will be on my site and it is important that it works for everyone.

can i have a form inside a form?

peynir
01-17-2005, 06:31 AM
Why you insist on using a button as a link to next page.
dunno if you could have a form inside another. but, It will be much easier if u just do
submit form1 | plain link or maybe image button

saghir69
01-17-2005, 06:59 AM
yeah thats an option, but the form is a login box, so the submit buton says login (then next to it i want a button that says register)


or mabe i'll have to use a image or text link for both to submit the form and a standard link.


i can't really try any thing cos i'm at work :(

alextt
01-18-2005, 08:09 AM
could'nt you just use two buttons on one form?

Kamejoko
01-18-2005, 08:57 AM
You can user CSS

<form>
...
<div class="div1"><input type=Submit...></div>
</form>
<form>
...
<div class="div2"><input type=Submit...></div>
</form>

And use CSS to determine possition of div1 and div2 so that they are next to each other.