jogol
06-30-2005, 03:32 AM
hi experts, i need some help with a line of php:
if(empty($name) || empty($email) || empty($msg)) {
echo "All fields are required. Go back.";
}
i have a style sheet attached and want to apply the class "txt" to 'All fields are required. Go back.' further i want to add a link to "Go back"
the following doesnt work:
if(empty($name) || empty($email) || empty($msg)) {
echo "<span class="txt">All fields are required. <a href="kontakt.html">Go back</a>.</span>";
}
i also tried:
if(empty($name) || empty($email) || empty($msg)) {
echo <span class="txt">"All fields are required. <a href="kontakt.html">Go back</a>."</span>;
}
as you can see iīm a total noob and canīt figure out the right syntax.
please help.
regards,
jogol
if(empty($name) || empty($email) || empty($msg)) {
echo "All fields are required. Go back.";
}
i have a style sheet attached and want to apply the class "txt" to 'All fields are required. Go back.' further i want to add a link to "Go back"
the following doesnt work:
if(empty($name) || empty($email) || empty($msg)) {
echo "<span class="txt">All fields are required. <a href="kontakt.html">Go back</a>.</span>";
}
i also tried:
if(empty($name) || empty($email) || empty($msg)) {
echo <span class="txt">"All fields are required. <a href="kontakt.html">Go back</a>."</span>;
}
as you can see iīm a total noob and canīt figure out the right syntax.
please help.
regards,
jogol