Form Post Problem

I

iws

Hi! I'm having a bit of a problem with my page. I have two form method=post
on the same page.

one is a search button and the other newsletter subscription button.

the search is on top of the newsletter. currently, the search is working
fine. however, when I enter an email address and click subscribe button for
the newsletter subscription, my page is directed to the search page (because
of the search form).

Can someone please help and show me how to validate or differentiate these
two forms? Is it possible?

thanks.

beginner
 
R

Ronx

Ensure each form has its own unique name, and is enclosed by its own set of
<form....>...</form> tags.
Give a URL to the page for a better answer.

Ron
 
I

iws

that's a life saver, Ron. thanks a mio!!

but, i noticed my text box has shifted up. it's just squeezing itself to the
top
 
I

iws

i was thinking of just putting a transparent image to force it to space out
evenly and don't look so squashed.
 
R

Ronx

Do you have this page on a web site where it can be viewed?
Try using tables to layout the forms, place the table entirely within the
form
<form.....>
<table border="0">
<tr><td> content</td> </tr>
<tr><td>......etc.
......
</table>
</form>

set cellspacing and cellpadding to separate the rows and cells to remove the
"squash".

Ron
 
Top