<form name="form" method="post" enctype="multipart/form-data" action="feedcreator.php" onSubmit="<?php if($button=='Add Channel and Add Item'){echo 'return ValidateForm(form.chanTitle, form.chanLink, form.chanDescript, form.itemTitle, form.itemDescript)';}else if($button=='Update Channel'){echo'return ValidateForm2(form.chanTitle, form.chanLink, form.chanDescript)';}else if($button=='Add Item To Existing Feed'){echo'return ValidateForm3(form.itemTitle, form.itemDescript)';} ?>">
<input name="button" type="submit" class="style10" id="button" value="Update Channel">
<input name="button" type="submit" class="style10" id="button" value="Add Item To Existing Feed">
<input name="button" type="submit" class="style10" id="button" value="Add Channel and Add Item">
<input name="reset" type="reset" class="style10" id="reset" value="Reset">
It will submit, but It always runs ValidateFrom not the others... Anyone have any clue why its doing this? Also since its submitting to itself I need to make sure that it does the checking with the values from the box.