hey...sorry it took me long to respond i was away. it still redirects me to the insert.php page. this is my current code:
<form action="insert.php" onsubmit="alert('Thanks for Subscribing');" enctype="multipart/form-data" id="form" method="post">
<div class="form"><img src="images/form_title_test.gif" alt="" /><br />
<div class="div_input"><input name="email" type="text" class="input_1" value="Enter email" /></div>
<!--<a href="#" onclick="document.getElementById('form').submit()"><img src="images/link_subscribe_test.gif" alt="Subscribe" /></a>-
->Press Enter
how can i just have the alert window without redirecting anywhere. and if i do this will the insert.php still work? thanks...