Code: Select all
//Info brought in from form
$engravedtext = trim($_POST["engravedtext"]);
if ($engravedtext=="")
{
//go here
header ("page1.php");
}
else
{
//else go there
header ("page2.php");
}
?>Moderator: General Moderators
Code: Select all
//Info brought in from form
$engravedtext = trim($_POST["engravedtext"]);
if ($engravedtext=="")
{
//go here
header ("page1.php");
}
else
{
//else go there
header ("page2.php");
}
?>Not too sure I understand, but it led me to an hour of reading in which I was able to solve my issue. Thanks Christopher.Christopher wrote:You can't have any output before the header(). Check for any echo or characters outside php tags.
Code: Select all
<?PHP
if ($engravedtext=="")
{
echo '<META HTTP-EQUIV="Content="0; URL=success.php">';
}
else
{
echo '<META HTTP-EQUIV="Content="0; URL=retry.php">';
}
?>Being completely new to php I'm not certain how this page can help me at this time, perhaps in a few months I'll understand it betterpytrin wrote:Also in the future, please use the forum search function before posting. This is just from a couple of days ago
viewtopic.php?f=1&t=115746