Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7192889
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T20:02:56+00:00 2026-05-28T20:02:56+00:00

I am using wordpress 3.3.1 with twentyten theme, i have created a plugin to

  • 0

I am using wordpress 3.3.1 with twentyten theme,

i have created a plugin to create a custom form,

i have successfully installed this in wordpress,

my plugin file code is as follows

<?php
function guest_event_form()
{ 

if(isset($_POST['submit']) and $_POST['action']=='new registration')
{

    global $wpdb;
    $wpdb->query("Insert Query...");
}
else
{
?>
<form method="POST" action="" name="guest_registration" enctype="multipart/form-data"> 
<input type="text" id="name" name="name" value="">
<input type="submit" name="submit" value="Register Me Now"/>
<input type="hidden" name="action" value="new registration" />
</form>
<?php
}
}
add_shortcode( 'guest_event_form', 'guest_event_form' );
?>

whenever i am submitting this form, i returns to same page with search results,

so i guess the problem whenever i submit this form, wordpress takes this submit action as a search action, and it starts search

how do i overcome this problem??

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T20:02:57+00:00Added an answer on May 28, 2026 at 8:02 pm

    The Problem is because of following form element’s id

    <input type="text" id="name" name="name" value="">
    

    name is one of the wordpress internal variable

    Change it like this:

    <input type="text" id="customername" name="customername" value="">
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using wordpress twentyten theme. and in this i have set search widget.
I am using Wordpress Custom Field Template Plugin - http://wordpress.org/extend/plugins/custom-field-template/ I create some File
I created a site using wordpress. I installed the 'starkers' theme and modified it.
I have a table like this (using wordpress) +---------+----------+------------+ | meta_id | meta_key |
I am creating a child theme in Wordpress using the TwentyTen theme as a
Using Wordpress I have created a multiple select box so that users can select
I'm using wordpress and i have many plugins which using javascript file. I want
i'm using wordpress, i have a page that i can access like this http://mywebsite/category/page
i using wordpress 3.1.3 to develop custom theme. it seems my theme has strange
I am using Wordpress with JQuery to create a vehicle selection form. Vehicle information

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.