Forum Moderators: coopster
I want to have a link open to a popup and display the contents based on the ID # that i passed along with it.
Here is what i have so far but it does not disply the data.
<!-- Begin
function popUp(URL) {
mywindow = window.open(URL, "newwin", 'toolbar=0,scrollbars=,location=1,statusbar=1,menubar=1,resizable=1,width=400,height=300,top=60,left=60');
}
// End -->
</script>
echo "<A HREF=javascript:popUp('current_record.php?prospectID=";
echo $ID;
echo "')>Open Popup Window</A>";
Any help would be greatly appreciated.
Thanks ;-)
[edited by: coopster at 7:04 pm (utc) on Aug. 30, 2005]
[edit reason] removed personal url [/edit]
Just a reminder (or a notice, since you're new :)), it's against the Terms of Service (TOS) to post any URLs to personal sites. In the future, it's better to send info like that directly to someone using the stickyMail.
That being said, when I go to that site, all I get is a login prompt.
Chad
I was able to view the page anyway (META refreshing is not the most secure way to require logins), and it looks like the current_record.php is not grabbing the ID correctly.
Also on the show_all_data_POPUP.php page, the link is showing up like this:
<A HREF=javascript:popUp('current_record.php?prospectID=4')class=nav3>
It should look more like this:
<A HREF="javascript:popUp('current_record.php?prospectID=4')" class="nav3">
Note the double quotes, and the space before "class".
Chad
<?php
header("Location: http://www.example.com/login.php"); /* Redirect browser */
/* Make sure that code below does not get executed when we redirect. */
exit;
?>
This will send the browser directly to the login page, instead of loading the content and then "suggesting" with a meta tag to go to a new page.
Chad