<a class="topLink" href="input_image.php"><input type="submit" name="productbaru" value="Product Baru"/></a>

If I press Product Baru why they do not take me to input_image.php ?

Recommended Answers

Because a submit button responds to a form tag, not a link.

Jump to Post

All 3 Replies

Because a submit button responds to a form tag, not a link.

However, you can do this;

<a class="topLink" href="input_image.php">
<input type="button" name="productbaru" value="Product Baru"/>
</a>

Submit type is only used with form.So write button instead of submit.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.