Putting blackslashes in input values.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ridikuloz
    Confirmed User
    • Jun 2005
    • 2080

    #1

    Putting blackslashes in input values.

    Code:
    echo "4 <input type=\"file\" value='C:\images\' name=\"image4\" class=\"form\"><br>";
    I need help putting blackslashes in input values. The problem is that it's not showing up on the page. Any help to make it show up?
    Each persons' level of stupidity makes us different.
  • MissFireCrotch
    Confirmed User
    • Jun 2007
    • 187

    #2
    I always break out of php to show html.
    such as:
    PHP Code:
    <?php
    while (true)
    {   //open brace
    ?>
    all my html tags <?php echo $phpVar; ?> with php vars included
    <?php
    }   //end brace
    ?>
    Need some web dev? Contact ME
    ICQ - 366621126

    Comment

    • MissFireCrotch
      Confirmed User
      • Jun 2007
      • 187

      #3
      or you can do like this:
      PHP Code:
      echo '4 <input type="file" value="C:\images\" name="image4" class="form"><br />'; 
      
      read here to see the performance diferences between echoing and breaking out of php:
      http://www.webmasterworld.com/forum88/3253.htm
      Need some web dev? Contact ME
      ICQ - 366621126

      Comment

      • ridikuloz
        Confirmed User
        • Jun 2005
        • 2080

        #4
        Still doesn't show up even after breaking out of PHP. I removed the type="file" part of the input and it magically appeared. Is it something to prevent hacking or whatnot?
        Each persons' level of stupidity makes us different.

        Comment

        Working...