473,386 Members | 1,819 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Pass Variable to New Window

Hey guys, I was doing some mysql database stuff and I wanted to have a pop up window with some other forms on it.

The problem I'm having is that I have no clue how to pass a variable for PHP to retrive from the page before. I know I can do a "GET" method to put the variables in the URL but I don't think you can get that variable with PHP.

Anyone know a loop hole around this? :confused:

Thanks alot
Jul 28 '05 #1
2 5401
Niheel
2,460 Expert Mod 2GB
Your question was a bit unclear, but i took a shot at it.


Yes, you can access the GET variables via php.

if your url is:
http://www.somedomain.com/form.php?variable=vavoom

then in your php file you can access this variable in the following method.

Expand|Select|Wrap|Line Numbers
  1.  
  2. <?
  3. $access_variable = $_GET['variable'];
  4.  
  5. // $access_variable should now be "vavoom"
  6. ?>
  7.  
Jul 28 '05 #2
Your first page should be
<a href="page.php?message=hi">Message</a>

then create a new page name page.php
then give there the following code....
<?php
echo $_GET['message'];
?>
Hope ur code will run properly.
Apr 23 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

13
by: Al Franz | last post by:
Anyone understand how to pass parameters to a JavaScript. If anyone finds this easy to do maybe they could take a look at my short script on this page and show me how it needs to be changed. ...
12
by: Casey | last post by:
Yeah, I know this question was asked by someone elselike 2 weeks ago. But I need some additional help. I have a program I'm developing, and multiple different forms will be opened. For now though,...
4
by: Sharon | last post by:
Hi! After transforming XML to CSV format I open an HTA to save the CSV to the client. All goes well, the function looks like this: function buttonExportClick() { var xslt = new...
2
by: umashd | last post by:
Hi, I am doing a web based project for my graduation. I studied bit of java for backend processesing and javascript for the client. Here is the scenario. In the FORM, I use INPUT TYPE=text...
4
by: deko | last post by:
This is a basic program flow question. I'm trying to refractor an AC2000 app and split sections of code into separate modules. But there are a number of collections I create in one big module -...
1
by: KavvY | last post by:
Hi, I need to open a pop up window from my main aspx page while passing it a value, but i've got stuck on the first hurdle which is how to open a window at all! Any help appreciated, ...
6
by: Ellie | last post by:
In my program the user clicks on a link and using the window.open function, opens a new window. I pass a url to the new window like this: <a href="#"...
1
by: rameshk75 | last post by:
I have a parent window and popup window. Would like to pass a value stored in a Code behind variable(_strUserId) as a querystring. Below is the code. Dim Popupscript As String Popupscript =...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.