Changing Form Submit to Redirect

Is there a way to take this form submit button…

<!-- Submit Form -->
	<input type="submit" name="addArticle" id="addArticle" value="Add Article"/>

…and turn it into a “Add Another Record” button that is styled the same way but that re-directs the user back to the same page but my HTML “Add an Article” form?

I’ve done this lots in the past with Image Buttons, but am looking for a different approach using my browser’s built-in buttons (or whatever).



Little bit of Javascript should do it

<script type="text/javascript" language="javascript">
    function redirect()
        location.href = "";

<input type="button" value="Add Another Record" onclick="redirect();" />

Thanks, but how about without JavaScript?

(What happens when a user’s JS is off?!)

Maybe I just need to go back to my image buttons - which is fine - except that I wanted a button that looks like the “Submit” button the browser already provides.


I’m not sure I understand your question. Can you give an example of how you do it with image buttons?

Like this…

	<a href="' . WEB_ROOT . 'log_in.php">
		<img src="' . WEB_ROOT . 'buttons/SignIn2.png" alt="Sign In" />