Hey guys
Here is my challenge.
if you go here
http://www.bmcoll.com/pagetest
and paste in some html then hit the submit button the result page will show the
code you entered the errors found and the code that has been cleaned to w3c xhtml 1.0
What I cant seem to figure out is this .
in the first box that displays the code you entered I want to number each line of code. and I can not seem to figure out how to take the input from the form set it as an array then explode it as output with each line numbered. or if that is even the correct approach.
Here is the basic code to display the code that the user posted
Code:
<?php
$file= $_POST['file'];
echo"<h3>Here is the html you started with</h3>";
echo"<textarea rows=\"10\"cols=\"90\">$file</textarea>";
It works fine but how do I display it as a numbered list.
__________________
I hope to build a site with something for every one
Please login or register to view this content. Registration is FREE
|