Positioning a php-script clickbox on the page

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
allesok
Forum Newbie
Posts: 2
Joined: Tue Jul 25, 2006 3:53 am

Positioning a php-script clickbox on the page

Post by allesok »

On my website http://www.christian-reincarnation.com I have a click-box in the upper left corner of the starting page for each chosen language. It shows the e-mail address.

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>
Thankful for advice.
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post by JayBird »

This is a Client Side issue
allesok
Forum Newbie
Posts: 2
Joined: Tue Jul 25, 2006 3:53 am

Post by allesok »

And where is the Client side?
Post Reply