View Full Version : Positioning the window

06-06-2003, 05:00 PM
Hello everybody,

I display records on a page from a table using PHP and theres a link called "Contact the person"When i click on this link, i want to open a new page and this page has to be centered on the window.This code is working fine in another application of mine but does'nt seem to work here.Could somebody please tell me why this does'nt work.

Thanks in advance

On the first page i've this code:

echo"<td width='50%'><a href='contactform.html' target='_blank'>Contact the Person</a>";

and now when i click on contact the person, the page contactform.html opens and here is the code for that.


<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>Contact Page</title>

<script type="text/javascript">

function openWindow(theURL,winName,features, myWidth, myHeight, isCenter) {
var myLeft = (screen.width-myWidth)/2;
var myTop = (screen.height-myHeight)/2;


<body bgcolor="#FFFFCC">

<table border="1" width="100%">
<td width="50%">Your name</td>
<td width="50%">
<p><input type="text" name="T1" size="20"></p>
<td width="50%">Your text</td>
<td width="50%"><input type="text" name="T2" size="20"></td>
<td width="50%">Your description</td>
<td width="50%">
<p><textarea rows="2" name="S1" cols="20"></textarea></p>


<table border="1" width="100%">
<td width="100%"><input type="submit" name="submit" value="enter"></td>



06-06-2003, 06:32 PM

look in there and ignore my code.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum