passing variables to a popup window

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ross

    passing variables to a popup window

    <a href="view_deta ils.php"
    onClick="window .open('view_det ails.php?id=<?= $row['id'];?>&sname=<?=$r ow['sname'];?>')">
    details</a>


    Have got this so far but need to get the width and height set. Cannot seem
    to get he syntax right.

    Cheers,

    Ross.



    --
    Posted via NewsDemon.com - Premium Uncensored Newsgroup Service
    ------->>>>>>http://www.NewsDemon.c om<<<<<<------
    Unlimited Access, Anonymous Accounts, Uncensored Broadband Access
  • Randy Webb

    #2
    Re: passing variables to a popup window

    Ross said the following on 8/31/2005 5:23 AM:
    [color=blue]
    > <a href="view_deta ils.php"
    > onClick="window .open('view_det ails.php?id=<?= $row['id'];?>&sname=<?=$r ow['sname'];?>')">
    > details</a>
    >
    >
    > Have got this so far but need to get the width and height set. Cannot seem
    > to get he syntax right.[/color]

    Start by posting the code that actually gets sent to the browser, not
    the PHP code that produces the HTML.

    Then, in your onclick, return false.

    Other than that, without seeing what the browser gets, you are playing a
    Russian Roulette guessing game.

    --
    Randy
    comp.lang.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly

    Comment

    Working...