8peoneeslv wrote:Thanks for your very speedy reply...But, what do you mean, "character set"?
8peoneeslv wrote:(btw, I'm using notepad, basic)
8peoneeslv wrote:And, can you/php expert pls confirm: use double q-marks for values for variables, single for exact text?
8peoneeslv wrote:Any confirmation that the browsers, do in fact, interpret (ie, compile) this rule in this way?
8peoneeslv wrote:The following is a good example of results from xampp...this line: -- echo 'checked="checked" '; -- NOR this line: -- echo "checked='checked' ";
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
.spaces10 {margin-right:10px;}
</style>
</head>
<body>
<?php
{echo
"<p>Last Name <span class="spaces10"></span>
<input type="text" name="Blast" maxlength="25" size="25"
value="<?php if ($Blast_valid==1)
{echo htmlspecialchars (['Blast'], ENT_QUOTES);}
else
{$Blast = " ";
echo 'placeholder="Letters ONLY" ';}
?>"
/>
</p>";
}
?>
</body>
</html>
<?php
{echo
"<p>Last Name <span class="spaces10"></span>
value="<?php if ($Blast_valid==1)
<?php
if ($Blast_valid == 1)
$value = htmlspecialchars('Blast', ENT_QUOTES);
else
$value = 'placeholder="Letters ONLY" ';
?>
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
.spaces10 {margin-right:10px;}
</style>
</head>
<body>
<p>
<span class="spaces102">Last Name</span><input type="text" name="Blast" maxlength="25" size="25" value='<?=$value?>'>
</p>
</body>
</html>
<?php
if ($Blast_valid == 1)
$value = htmlspecialchars('Blast', ENT_QUOTES);
else
$value = 'placeholder="Letters ONLY" ';
include "output.html.php";
?>
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
.spaces10 {margin-right:10px;}
</style>
</head>
<body>
<p>
<span class="spaces102">Last Name</span><input type="text" name="Blast" maxlength="25" size="25" value='<?=$value?>'>
</p>
</body>
</html>
Users browsing this forum: No registered users and 178 guests