I am building a website that needs to make use of some sort of greybox, to show content in a popup basically. I have found one solution that looks really good and I am keen on using, however i am struggling to get it working with PHP.
Basically the greybox i plan to use requires the following link in order to work
<a rel="gb_page_center[500, 500]" title="Google" href="http://google.com/">Launch google.com in a 500x500 center window</a>
However the way my program works, is as following:
I have a form with four buttons, and a PHP sciript that is called when the buttons are clicked -
Code: Select all
<?php
if ($_POST['Que'])
{
echo "Question<br>";
echo $_POST['JobID'];
}
else if ($_POST['Can']) {
echo "Candidate<br>";
echo $_POST['JobID'];
}
else if ($_POST['Rec']) {
echo "Recruiter<br>";
echo $_POST['JobID'];
}
else if ($_POST['Del']) {
echo "Delete<br>";
echo $_POST['JobID'];
}
?>The PHP code has to think that the user has pressed the following link
<a rel="gb_page_center[500, 500]" title="Google" href="http://google.com/">Launch google.com in a 500x500 center window</a>
Im not sure if this is possible, or if i have explained this well enough, i havent posted the link to the greybox because im not sure if im allowed
ANy help would be great
Thanks