If I put it at the bottom of the page, where my name, address and telephone number are,
1. it isn't centered - how can I center it under name and address?
2. it makes the page view jump up to the beginning of the page when clicked - how can I make the page view stay as it was before when the box is clicked?
The script is:
Code: Select all
<FORM method="post">
<?php
$_POST['show'] =="0";
if (isset($_POST['show'])&& ($_POST['show']=="Show e-mail"))
{
$_mail_to = "mailto:";
$_nickname = "sigdell";
$_domain = "siol.net";
echo '<p><a href="', $_mail_to, $_nickname, '@', $_domain, '">', $_nickname, '@', $_domain, '</a></p>';
}else{
echo '<p><input type="submit" name="show" value="Show e-mail" id="button" /></p>';
}
?>
</FORM>