NYCPHP Meetup

NYPHP.org

[nycphp-talk] Passing parameters with the click of a button.

Jon Baer jonbaer at jonbaer.com
Tue Oct 31 11:37:49 EST 2006


You need to be cool and do it the web 2.0 way (slick effects  
optional) ... :-)

<script src="jquery.js" type="text/javascript" charset="utf-8"></script>

<input type="radio" name="Referrals" value="Y" onclick="$ 
('#Referrals').show()"/> Yes

<div id="Referrals" style="display: none;">
<!-- no need to pass any variables around -->
</div>

- Jon

References
http://www.jquery.com

On Oct 30, 2006, at 11:25 PM, Ariel Kulkin wrote:

> Problem Statement: With the click of a button, I need to open a new  
> window (to capture "user referrals"), and pass to it a parameter  
> that will be used to track the user id of the individual who  
> originated those referrals.
>
> I have no problems opening the window with the button click:
> I can't quite get the syntax, however, to pass the user_id  
> parameter...
> How do I go about passing the user_id parameter to the newly open  
> window?
>
> CODE:
>
> Do you know anybody who may benefit from using XYZ System?
>       <label>
>       <input name="Referrals" type="radio" value="N"  
> checked="checked" />
>       No</label>
>       <label>
>       <input type="radio"  name="Referrals" value="Y"  
> onclick="MM_openBrWindow('/Pop%20Ups/ 
> Referrals.php','Referrals','scrollbars=yes,resizable=yes,width=500,hei 
> ght=600')"/>
>       Yes<br />
>
> Your assistance is appreciated.
>
> Thanks!
>
> Ariel.
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
>
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php




More information about the talk mailing list