#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2000
    Posts
    0
    Rep Power
    0
    I am using a basic php email form and I want the page that it bumps you to to display the variables entered in the form. I am having no problem getting to do it on a blank page, but I need to have it display them inside of a table. Could someone tell me how I can write the php code so that it won't get a parse error when I put in the commands to form a table?
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 1999
    Posts
    114
    Rep Power
    16
    <table>
    &nbsp;&nbsp;<tr>

    &nbsp;&nbsp;&nbsp;&nbsp;<?php

    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo ("<td>$myvariable</td>n");

    &nbsp;&nbsp;&nbsp;&nbsp;?>
    &nbsp;&nbsp;</tr>
    </table>
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 1999
    Posts
    114
    Rep Power
    16
    [Don't forget to pass your variable through htmlspecialchars().]
    http://www.php.net/manual/function.htmlspecialchars.php

    echo ("<td>" . htmlspecialchars ($myvariable) . "</td>n");

IMN logo majestic logo threadwatch logo seochat tools logo