read html controls from php

Discussion in 'PHP' started by gregd1, May 8, 2012.

  1. #1
    Hello,
    I am a newbe at php.
    If I was to have multiple html pages, and the main html page I am posting to a second page
    <form method="POST" name="firstForm" action="secondForm.php"

    On the second php page I would like to read all of the html controls in PHP.

    $addressZip=isset($_POST['addressZip'])?$_POST['addressZip']:"";

    Can this be done?
    Do all of the html files get combined already, so it won't matter?

    thanks
     
    gregd1, May 8, 2012 IP
  2. Wesleyy

    Wesleyy Peon

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    what do you mean by "html controls"? do you mean values summited via the form?
     
    Wesleyy, May 9, 2012 IP
  3. gregd1

    gregd1 Peon

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    My lingo might not be correct.
    But when I say html control, I mean like a slef
    <td width=40% align='left'><input class='inputField' type='text' name='installDate' value='<?=$today?>' </td>
    Or checkbox
    <td colspan='2' class='normal'><input type='checkbox' name='testCheck'>test</td>
     
    gregd1, May 10, 2012 IP