NYCPHP Meetup

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

David Krings ramons at gmx.net
Tue Oct 31 19:03:14 EST 2006


Hi,

    I would use a session and write whatever I need somewhere else into 
the session. As long as the session is kept alive you can grab from it 
whatever you need. No GET, no POST, and definitely no JavaScript. ;-)

       David K.


Jon Baer wrote:
> 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.
>> _______________________________________________
>>     




More information about the talk mailing list