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 9159997
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T13:37:50+00:00 2026-06-17T13:37:50+00:00

My test PHP submission code: <?php if($_POST[‘create’]) { echo $_POST[‘name’]; } ?> My HTML

  • 0

My test PHP submission code:

<?php 
if($_POST['create']) { echo $_POST['name']; }
?> 

My HTML form code:

<form class="form-horizontal" id="ConsultantSignUp" method="post" action="#">

<div class="control-group">
    <label class="control-label" for="inputForename">Name</label>
    <div class="controls">
        <input type="text" class="input-xlarge" id="name" name="name" rel="popover" data-content="Enter your first and last name." data-original-title="Full Name">
    </div>
</div>

<div class="control-group">
        <label class="control-label" for="input01"></label>
        <div class="controls">
            <button type="submit" class="btn btn-success" rel="create" title="create" id="create" name="create">Create My Account</button>
        </div>

    </div>

</form>

My error is that it doesn’t even print out the name after submission. I’ve checked the PHP Error log and it says:

PHP Notice: Undefined index: create in /Users/**/sites/signup.php on line 2

Line 2 being ‘if($_POST[‘create’]) { echo $_POST[‘name’]; }’.

I’m aware of the isset() method to remove the Undefined Index notice, how ever, I just want to test my form!

  • 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-06-17T13:37:51+00:00Added an answer on June 17, 2026 at 1:37 pm

    This is my total code…This working perfectly for me in Chrome, Explorer and Firefox. Just check it

    <?php
        if(isset($_POST['create'])) 
        { 
            echo $_POST['name']; 
        }
        else
        {
    ?>
    <form class="form-horizontal" id="ConsultantSignUp" method="post" action="#">
    
    <div class="control-group">
    <label class="control-label" for="inputForename">Name</label>
    <div class="controls">
        <input type="text" class="input-xlarge" id="name" name="name" rel="popover" data-content="Enter your first and last name." data-original-title="Full Name">
    </div>
    </div>
    <div class="control-group">
        <label class="control-label" for="input01"></label>
        <div class="controls">
            <button type="submit" class="btn btn-success" rel="create" title="create" id="create" name="create">Create My Account</button>
        </div>
    </div>
    
    <?php
    }
    ?>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

test.php $aaa = $_POST['aaa']; echo $aaa; Javascript Code $.ajax({ url: 'ajax/test.php', data: { aaa:
Possible Duplicate: php $_POST array empty upon form submission I just make a simple
test.php includes this: echo json_encode( array( array(name=>John,time=>2pm), array(name=>2,time=>1242pm), array(name=>J231ohn,time=>2p213m), )); jQuery : $.get(test.php, function(data)
On page test.php i send form with method post. Сode page test.php var_dump($_POST); error_reporting(E_ALL
I have a test.php file and this file contains some PHP code, HTML elements
I have a file test.php with the following code: <html> <head> <title>Listing 10.2 </title>
Page1 : test.php (open in popup) <script type=text/javascript> function addFiles(aFiles) { if ($('#addfiles').length==0) $('#addfiles').html;
I have a button on a file test.php <?php $url=http://.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; ?> <input type=button name=btn
My flash code: var request=new URLRequest('http://localhost/test.php'); request.method = URLRequestMethod.POST; var data = new URLVariables();
Here is my complete script... You can just create test.php and throw it in.

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.