SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    Sep 2012
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    I cannot run my PHP scripts sample / edit/update not working

    Hello I need help to my script I'm just new in php and I cannot run my edit/update link. I'm almost finish in my script but the problem is when I try to click the submit button from the edit page its not getting the newly edited information. Please help.

  2. #2
    SitePoint Wizard silver trophybronze trophy Cups's Avatar
    Join Date
    Oct 2006
    Location
    France, deep rural.
    Posts
    6,869
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)
    If you are POSTing the data to the next page (the "form handler") you can use this to look at what is being passed.

    PHP Code:
    <?php

    var_dump
    ($_POST);
    echo 
    '<hr />';
    You should turn on error reporting when you are developing as well.

    If you cannot find out how to do that then search this forum for error_reporting and you will find discussions and advice.

  3. #3
    SitePoint Member blogaddition's Avatar
    Join Date
    Sep 2012
    Location
    India
    Posts
    23
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    could you place the code where you want to display the edited information

  4. #4
    SitePoint Enthusiast
    Join Date
    Jul 2011
    Location
    Novi Sad
    Posts
    34
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can get detailed report with this code, it echo's full var info, and array elements:

    PHP Code:
    <?php 
    echo 'Vardump info:<br/>';
    echo 
    '<pre>';
    var_dump($_POST);
    echo 
    '</pre>';
    echo 
    '<br/><br/>Array elements:';
    echo 
    '<pre>';
    print_r($_POST);
    echo 
    '</pre>';
    ?>


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •