I don't really know how to ask this but here goes.
I would like to place a line of code on a web page and have it print what's in the php script that it points to. I guess like a counter does.
Here is the code I am testing but it's not working. Any help would be great!
The php file holding the html code..
<?php
echo<<<END
<form name="myForm" method="post" action="putform.php" onsubmit="return validateForm()">
<input type="hidden" name="btn_submit" value="1">
<input type="text" maxlength="20" size="20" name="fname" value="" class="formfieldname" placeholder="First Name"><p />
<input type="text" maxlength="20" size="20" name="lname" value="" class="formfieldname" placeholder="Last Name"><p />
<input type="text" name="email" maxlength="55" size="20" value="" class="formfieldemail" placeholder="Best Email"><p />
<input type="text" maxlength="20" size="20" name="phone" value="" class="formfieldphone" placeholder="Cell Phone"><p />
<p />
<input class="button" type="submit" name="submit" value="SHOW ME THE FREE TRAINING">
<input type="hidden" name="affiliate" value="$affiliate">
<input type="hidden" name="myip" value="$myip">
<input type="hidden" name="c" value="$id">
<input type="hidden" name="program_id" value="$id">
<input type="hidden" name="campaign" value="$campaign">
<input type="hidden" name="campaignid" value="$campaignid">
</form>
END;
?>
Here is a sample of the HTML code that someone would visit...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>test</title>
</head>
<body>
<!-- this will be replaced with the form html code -->
<script src="example.com/test_form.php"></script>
</body>
</html>