GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Webmaster Q & Fuckin' A (https://gfy.com/forumdisplay.php?f=27)
-   -   Putting blackslashes in input values. (https://gfy.com/showthread.php?t=799198)

ridikuloz 01-12-2008 07:57 PM

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?

MissFireCrotch 01-12-2008 08:57 PM

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
?>


MissFireCrotch 01-12-2008 09:05 PM

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

ridikuloz 01-14-2008 04:22 PM

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?


All times are GMT -7. The time now is 09:30 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123