Jump to content

Search the Community

Showing results for tags 'cant find out what is wrong.'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to PHP Freaks
    • Announcements
    • Introductions
  • PHP Coding
    • PHP Coding Help
    • Regex Help
    • Third Party Scripts
    • FAQ/Code Snippet Repository
  • SQL / Database
    • MySQL Help
    • PostgreSQL
    • Microsoft SQL - MSSQL
    • Other RDBMS and SQL dialects
  • Client Side
    • HTML Help
    • CSS Help
    • Javascript Help
    • Other
  • Applications and Frameworks
    • Applications
    • Frameworks
    • Other Libraries
  • Web Server Administration
    • PHP Installation and Configuration
    • Linux
    • Apache HTTP Server
    • Microsoft IIS
    • Other Web Server Software
  • Other
    • Application Design
    • Other Programming Languages
    • Editor Help (PhpStorm, VS Code, etc)
    • Website Critique
    • Beta Test Your Stuff!
  • Freelance, Contracts, Employment, etc.
    • Services Offered
    • Job Offerings
  • General Discussion
    • PHPFreaks.com Website Feedback
    • Miscellaneous

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Age


Donation Link

Found 1 result

  1. I Can't find out what is wrong with code.I'm a newbie to PHP and i created a form and embedded the script in the same page using if else statement. The Problem is that whenever i fill the form and then hit Submit button, the browser again asks me to fill the form instead of showing me the details i just entered. Below is The code. Please help me.. soon.. <html> <head> </head> <body> Fill up this simple form to get started:<br/> <?php if(!isset($_POST['submit'])) { ?> <form action="<?php $_SERVER['PHP_SELF']; ?>" method="post"> <p>Enter Your Name:</p> <p><input type="text" name="name"></p> <p>Select Your Age Group</p> <p><select name="age"> <option>10-15</option> <option>16-20</option> <option>21-25</option> </select></p> <p>Comments</p> <textarea name="comments" rows="5" cols="20">Your Comments Here..</textarea> <br/><br/> <input type="submit" value"Submit" name="Submit"> </form> <?php } else { echo "YOU SUBMITTED THIS:<br/>"; $name=$_POST['name']; $age_grp=$_POST['age']; $comments=$_POST['comments']; echo "$name<br/>"; echo "$age_grp<br/>"; echo "$comments<br/>"; } ?> </body> </html>
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.