Widget form not passing values
-
I’m trying to pass name and email on my custom widget but the values are not passing.
Code:
<form id='subscriber-form' method='post' action="<?php echo plugins_url().'/newsletter-subscriber-stevan/includes/newsletter-subscriber-mailer.php'?>" > <input type='text' class='form-control' id='name' name='name' placeholder='Insert your fullname' /> <input type='text' class='form-control' id='email' name='email' placeholder='Insert your email' /> <input type='hidden' name='recipient' id='recipient' value='<?php echo $instance['recipient'];?>'/> <input type='hidden' name='subject' id='subject' value='<?php echo $instance['subject'];?>' /> <input type='submit' name='subscriber_submit' class='btn btn-primary' value='Subscribe' /> </form>In newsletter-subscriber-mailer.php I have
<?php echo $_POST['name']; echo $_POST['email'];but I’m getting nothing from the form.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Widget form not passing values’ is closed to new replies.