Your conditional check is the wrong way around, it should be > not <.
But more importantly, why are you doing a raw SQL query at all, just use the standard functions, e.g. get_user_by:
$user = get_user_by( 'email', $email );
if ( !$user ) {
// there is no user with that email
}
Also, submit is an incredibly generic name for a form input to check, use something more specific, like av_email_cform_submit.
You can also replace your action="' . esc_url( $_SERVER['REQUEST_URI'] ) . '" with action="". You also have a double <p><p> in your form.
Related Posts:
- How to verify/test that a custom built wordpress theme is as secure as possible?
- Contact form 7 select box different value-text than content-text in option [closed]
- Let readers suggest edits from the frontend
- Where should my plugin POST to?
- Plugin development: how to create a form and get custom data?
- WordPress widget / plugin….fields not appearing in my widget
- Multi step form, custom plugin
- shortcode doesn’t work
- Contact Form 7 plugin refreshing page on submit [closed]
- Template plugin for blog posts? [closed]
- Plugin form unable to process
- Is there any good tutorial to write custom login, registration and password recovery forms? [closed]
- WordPress plugin form not saving data
- jQuery Plugin to use WordPress functions in AJAX request
- Add form fields dynamically on button click
- How to trigger $_GET request within admin plugin page?
- Retrieving a Value from a wp-database
- Custom CSS for plugin form
- Form doesn’t submit on second submit call
- WP plugins for building a database?
- Custom form action to handle data inside a plugin
- Image upload and other options in the same plugin settings form?
- When using Simple Fields plugin, how do I pull the information out of the database to display on a page?
- Creating an online questionnaire form – by Importing the questions from a spreadsheet?
- Can I use custom CSS and js plugin to put JavaScript in to validate my forms
- Using a custom plugin to capture input data via Ajax and PHP
- auto populate list of questions if user select a category xyz
- WordPress WPforms customization
- Submit page limited in time to upload image
- Adapt PHP form action for WordPress?
- Ajax fail and get 504 error
- How to insert HTML/JavaScript form into WordPress page? [closed]
- How do I make a child theme I made POST through a 3rd party plugin?
- How to fetch form data and show it to my page?
- Submit custom form from post content and execute in plugin
- Char limit on custom blog-post form? [closed]
- Is there a way to embed a Google Docs form in a page without using plugins?
- easy steps to make front end form without plugin
- Form that generates an ID for the customer
- Submit Form data to another page via Ajax (WordPress Way)
- WordPress checkbox and Illegal string offset
- Editing a text file from plugin menu
- Ajax Plugin Not Echoing Response
- Plugin that will output submitted form data for user? [closed]
- How to handle forms from sidebar widgets – Processing $_POST variables using get_field_name()
- coding a WordPress AJAX Form using PHP to check if User is Logged Out and Show error
- Creating a form and displaying entry data as a table
- Storing The Data Collected by Ninja Forms into Another (custom) Database [closed]
- Custom form not showing in correct place on page
- add_meta_box creating default form field types
- Form Plugin for Api Requests which is used via Shortcode
- Call another page in forms
- Echo out element to another page.
- How to Use the Filter “sidebar_login_widget_form_args”
- Select Form Element Not Saving from Plugin Options
- Contact Form 7 Plugin emails not being received by some accounts
- Using AJAX to run SQL statement and populate dropdown
- Looking for a simple checkout plugin [closed]
- Redirect plugin after form submit or show errors
- get wpforms ID value from ACF text field
- User loggedin as Subscriber form not sending
- How to create a form where you can select multiple recipients, based on a list of website users?
- WordPress search input in database, to edit information via form and update the database
- How to get data from a form on a wordpress site?
- WPForms Custom Redirect not working
- General Term for this form Field
- How can I implement radio buttons with icons in Contact form 7?
- Why is my form going to frontend on html form submission present on the php files inside my custom plugin?
- How to submit custom form data using ajax to HubSpot form?
- Page takes on two different formats
- get/show Last ID
- How can I automatically send an email with an excel file containing submissions for a form rather than an email per submission?
- Why doesn’t a form need an ‘action’ with a plugin that uses the post data?
- $POST variable is empty in receiving php add-on function but can be seen by jscript function
- Is there a function to search for a wildcard value when calling a shortcode?
- Include plugin form in the home page
- Create user assessment and use results in sql query
- Saving custom form fields
- Linking Plugin Files to WP
- Adding a Filter to Sidbar Login Plugin to Change Login Button Lable
- Create plugin with form in post and submit it to specific form
- Link Forms on WordPress
- Capturing POST data
- Is there a way to add a custom input field for every taxonomy term in WP post editor?
- Undefined variable _POST
- How to prevent page load on form submission
- How to develop an extension for a simple form post and post back? [closed]
- Plugin Beauty Contact Popup Form with while loop
- Is it possible to set different payment gateway on each Gravity Forms form? [closed]
- How to Allow Users to Select Recipients In a WordPress Comment section?
- Form with response button after on table after submission
- Tips on using a custom template with Ultimate Member
- Can’t save formdata in DB
- Display file contents within Plugin
- Gravityforms login form custom redirect if form not submitted
- i need to resive data external api and show user
- Trying to Find the PHP File/Function that Handles a Specific Form Action URL
- Issue using form in Google app in mobile
- add to cart linking to add to cart page
- Missing Contact Form/Form Default Plugin in WordPress