PHP Help Please
I need a nudge in the right direction if anyone can help please
I am trying to output different H1 headers on my page based on the page id.
For example, if someone lands on my page
example.com/landingpage.php?id=1
I would like to display H1 version 1.
landingpage.php?id=2 would show H1 version 2 ETC. So far I have
<?php
$h1=$_GET['id'];
if ($h1 == "1") {
echo "headline 1";
}
if ($h1 == "2") {
echo "headline 2";
}
elseif ($h1 == "3") {
echo "headline 3";
}
elseif() blocks
else {
echo "default headline";
}
?>
<h1><?php echo($_GET["h1"]) ?></h1>
Can anyone help me out please?
Thanks
-
WebMarketingTool -
Thanks - 1 reply
{{ DiscussionBoard.errors[10660523].message }}-
David Beroff -
Thanks - 1 reply
SignaturePut MY voice on YOUR video: AwesomeAmericanAudio.com{{ DiscussionBoard.errors[10661106].message }}-
Brendan Edmonds -
[ 1 ] Thanks
{{ DiscussionBoard.errors[10662462].message }} -
-
-