@datapunk79Jul 26.2008 — #I'm not sure what you're asking for but...
You can assign a action to a form to have it do something or go somewhere depending on what you want the form to do.
If you want to put a link on it then you can assign the form action to that link url. (But you may want to rethink this idea because its a lot of coding that you don't really need.) [code=html] <form id="name-of-your-form" action="http://your-first-link-url" method="post"> <input type="submit" value="Your Button Name"> </form> [/code]
You said you want to link it to javascript. I don't know that that means but..
You can assign javascript to do something during certain occasions. Like when the button is clicked, or the form is submitted, or the text in a field has changed.
@datapunk79Jul 26.2008 — #question: can i have a form inside a form?[/QUOTE]
Yes, no and maybe. It's possible in HTML, not in XHTML. But you could probably write a PHP or server side script to determine which submit button was clicked. All in all, I would avoid nesting forms if possible.
@OM2authorJul 26.2008 — #Yes, no and maybe. It's possible in HTML, not in XHTML. But you could probably write a PHP or server side script to determine which submit button was clicked. All in all, I would avoid nesting forms if possible.[/quote] thanks for the reply.
@ray326Jul 28.2008 — #From the article:When the new form was created, the HTML validator became a bit upset about the fact that a new form was created within an existing form. This isn’t allowed.[/QUOTE]