Submitting a form to itself
-
I’m facing a problem i have following form with just a Submit button on a Template Page of WordPress blog:
<form action="<?php echo get_permalink(); ?>&pid=[page_id]&action=add" method="get"> <input type="submit" value="Add to Cart" /> </form>
on a Template Page i want to submit it to the same page with some values through the URL but reason whenever i submit it it sends me back to homepage i.e. index.php of the template.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Submitting a form to itself’ is closed to new replies.