Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Not able to get value of fiels by using $_POST in PHP

Not able to get value of fiels by using $_POST in PHP

Scheduled Pinned Locked Moved Web Development
phpapachedatabasemysqlhelp
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    Vipin Chauhan
    wrote on last edited by
    #1

    Hello, I am beginner in PHP and using Wampserver for Apache, PHP and MySql. I created two file first.php and second.php In first.php i have two text box trough which user can enter data and this first.php call second.php with method = "post" for database access. In second.php i am not getting values of textboxes using $_POST variable. Please help me why i m not getting value. Thanks Vipin

    D 1 Reply Last reply
    0
    • V Vipin Chauhan

      Hello, I am beginner in PHP and using Wampserver for Apache, PHP and MySql. I created two file first.php and second.php In first.php i have two text box trough which user can enter data and this first.php call second.php with method = "post" for database access. In second.php i am not getting values of textboxes using $_POST variable. Please help me why i m not getting value. Thanks Vipin

      D Offline
      D Offline
      dfz
      wrote on last edited by
      #2

      It is important to make sure PHP is working on your webserver. What output are you getting? Here is an example which should work: 1. first.php <form method="post" action="second.php"> <input type="text" name="field1" /> <input type="submit" value="Send data" /> </form> 2. second.php <?PHP // print variables from POST scope. print_r($_POST); ?> Good luck :)

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups