php - How to use a tag for input type submit -
<form> <label class="screen-reader-text" for="s"><?php _x( 'search for:', 'label' ); ?></label> <input type="text" value="<?php echo get_search_query(); ?>" name="s" id="s" placeholder="search"/> <input type="submit" id="searchsubmit" value="<?php echo esc_attr_x( 'search', 'submit button' ); ?>" /> </form>
how use tag input type button. tag cod is:
<a href="#" class="fa fa-search" ></a>
by default submit uses form action
redirect on submit.
<form method="post" action="redirect.html"> <input type="submit" value="clickable button" /> </form>
or
<!-- form here --> <button type="submit" form="form2" value="submit">submit</button>
if want create form doesn't have action may use button
tag within a
link it.
or want input button redirects:
<form> <input type="button" onclick="parent.location='https://www.google.com/'" value="google" /> </form>
Comments
Post a Comment