T-String align?
Posted: Tue Oct 12, 2004 12:14 am
Can someone tell me how to align a t-string?
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
andCode: Select all
tags where approriate when posting code. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]
@ G-string
Maybe I didn't word it right. This is my code:Code: Select all
<? } elseif ($action == "join"){
if (!isset($_POST[name]) || !isset($_POST[email]) || !isset($_POST[country])) {
echo "<H2>Thanks</H2><P>Thank you for joining the Sarah Martin fanlisting. You will be added to the member list as soon as possible.</P>";
} elseif (empty($_POST[name]) || empty($_POST[email]) || empty($_POST[country])) {
echo "<H2>Error</H2><P>Oops, it appears you forgot to enter either your email address, your name or your country. Please press the BACK button in your browser and try again.</P>";
} else {Code: Select all
<?php
$str = "<H2>Thanks</H2><P>Thank you for joining the Sarah Martin fanlisting. You will be added to the member list as soon as possible.</P>";
?>Code: Select all
<?php
echo $str;
?>Code: Select all
<?php
if($succesful)
$msg="congrats on joining";
else
$msg="you forgot something";
?>Code: Select all
<?php
<html>
<head>
<title>Sarah Martin fan club</title>
</head>
<body>
some other content that you have
<?php if(isset($msg)) echo $msg; ?>
some more content
</body>
</html>
?>