<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

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 developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.