Posts: 457
Name: Randy
Location: Northern Wisconsin
|
1. I've done some reading and wonder if chrome will only display parsed text in source code if it is done with htmlentities() ? I am just learning form validation in php(and client-side). One php book I have (Codin' for the Web) doesn't even mention htmlentities while another book(Learning php & msql O'reily) uses it everywhere.
2. The code source looks exactly as normal source code view does, the only difference being that the parsed variables are not shown in the source.
3. Here is a snippet of the same exact viewed source code from a form:
(in chrome) value=""
(in Firefox) value="Joe"
The actual php on the form is: value="<?php echo $name ?>"
4. I am connecting through http://localhost/form_testing/form.php
Again, the variables are all showing up on the page correctly. Everything works on my validation etc. This was just something I was wondering about how chrome handles source code.
Maybe if you have some php pages on localhost that you can open with chrome you'll see what happens.
OK. I've looked at a bunch of PHP sites and viewed their source code. They seem to be displaying everything. I will look my page over again.
|