GIDForums  

Go Back   GIDForums > Computer Programming Forums > MySQL / PHP Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 18-Dec-2004, 16:21
josemiguel josemiguel is offline
New Member
 
Join Date: Dec 2004
Posts: 1
josemiguel is on a distinguished road

using session variables


I'm implementing an application where I register a session variable by means of:

session_start();
session_register("usuario");
$_SESSION["usuario"]=$usuario;

I want to allow the user enter data by clicking a button which executes a javascript function which opens a secondary window where the user has fields for entering data. Can I use the session variable I previously registered from PHP code in the secondary window?

Thanks in advance.
  #2  
Old 05-Jan-2005, 02:39
JUNK KED JUNK KED is offline
Awaiting Email Confirmation
 
Join Date: Oct 2003
Location: uk&ireland
Posts: 85
JUNK KED will become famous soon enough

javascipt pop up and php


Yes you can

Code:
<html><head> <script type="text/javascript"> <!-- function gidPopup() { window.open( "http://www.gidforums.com/" ) } //--> </script> </head> <body> <form> <input type="button" onClick="gidPopup()" value="gid index"> </form> <p >go go go............................</p> </body> </html>

as you can see the window open instruction will open a full size window of the gid index page.

put your url here instead of gidfoums and the path to your script.

As long as you have the correct session PHP in the script it will doo the sesion. You pass your variables to the script yuo call as you normally would.

If you need to resize the window do this search on google

javascript tutorial popup

You will get 1000's of hits

Thats how i first found this script
Last edited by JUNK KED : 05-Jan-2005 at 03:13. Reason: speelign
 
 

Recent GIDBlogProblems with the Navy (Chiefs) by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
passing variables out of an iframe by url JUNK KED MySQL / PHP Forum 5 31-Jul-2007 10:33
Function and Array (w/ reference variables) question brookeville C++ Forum 15 07-Dec-2004 02:11
About variables in C mantako C Programming Language 3 08-Jul-2004 05:11
getting variables from $_GET & $_POST Dunc MySQL / PHP Forum 2 29-Mar-2004 06:45

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 16:19.


vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.