Jump to content

Search the Community

Showing results for tags 'php form input'.

  • 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. Hello, I hope this is the right place for my question. I am new to php, having spent more than a decade writing in vbscript for asp pages, and I am stumped by this problem. I have searched both of my PHP manuals, the net and forums galore but cannot find the answer. I am trying to display records from mysql with a button to delete each record in the display. However, when I press the button, the information does not get through to the manipulation page. In the first page my relevant code is: <form action="<?=$_SERVER[ 'PHP_SELF' ] ?>" method="post"> <input type="hidden" name="ident" value="<? echo $row[0];?>"> <input type="submit" value="Delete"></form> $row [0] is the auto incrementing ID field and in this instance I have checked that it contains a value, which is the integer 3. Now when I get to the next page, which is supposed to delete the record, I do not get any errors, but nothing happens, so I wrote the following code to check that the information had been passed through. <?php $id = (INT)$_post['ident']; echo 'Form input= ', $_post['ident'], '<br>'; echo '$id= ', $id, '<br>'; This produces input= $id= 0 when it should produce input = 3 $id= 3 Once I can get the production of an integer in the $id variable I will be able to delete the record from the database. Can anyone tell me what I have done wrong please? Many thanks in advance.
×
×
  • 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.