473,395 Members | 1,496 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,395 software developers and data experts.

Can't get the $_GET variable...

I have this little bit of code:

Expand|Select|Wrap|Line Numbers
  1. <?php>
  2.    ob_start();
  3.    session_start();
  4.    $_SESSION['Sess_User'] = $_GET['UserName'];
  5.    $_SESSION['Sess_Pass'] = $_GET['Password'];
  6. ?>
  7.  
After I had an if structure to check the content of $_SESSION['Sess_User']. But whatever the content the return was always false. So I wrote that line:

Expand|Select|Wrap|Line Numbers
  1. echo $row["UserName"] . $_SESSION['Sess_User'] . $row["Password"] . $_SESSION['Sess_Pass'];
  2.  
To try and see what was going on... And the result is that $_SESSION['Sess_User'] and $_SESSION['Sess_Pass'] are always empty...

Where am I wrong?

Thanx.
Jan 22 '15 #1
2 1135
Rabbit
12,516 Expert Mod 8TB
What's the URL you're using to access the page?
Jan 22 '15 #2
Thanx for trying to help Rabbit. The problem was so obvious I didn't see it:I used $_GET instead of $_POST. Beginner....
It's working fine now.
Jan 22 '15 #3

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

Similar topics

1
by: bayouprophet | last post by:
Cant get menu script to to put linked page in the same frame. I am new to Java and I am wondering what am I doing wrong? below are my java applet file, frame.html file, and my text file and one...
4
by: gregsands | last post by:
Hi I have read all (ok most) of the posts relating to "Call to undefined function mysql_connect()", read the manual on PHP.net and done eveything thats ive been asked to do but cant get PHP to...
2
by: Showjumper | last post by:
I still cant get an icon to display for my custom server control in the toolbox. I create a bmp that is the same name as the class of the control. I set it to embedded resource and then build but...
4
by: Martin Fletcher | last post by:
I cant get the Concat function to work, please help. Here's some of my code. Module modTCP Public TCP_RECEIVED_DATA As String Private WithEvents TCP_SERVER As New WinSockSVR Private Sub...
8
by: Jim Florence | last post by:
Hi, I've just add a couple of dropdowns to my ASP form, set up a sqldatasource and bound to the dropdown and it all works great. I want the first item of the dropdown to be blank soa fter...
0
by: riteshraha | last post by:
Hi everyone, I am a member of this forum. i have posted my problem repeatedly to this forum. but i cant get any reply from this forum. plz anyone make any reply of my problem. I cant retrieve...
2
by: dhulapati | last post by:
I cant get the timer working with the windows service. I have the timer set to 3600 ms. It polls only for Start and Stop but not at intervals. The timer1.tick event handler is called at the...
1
by: Johan | last post by:
Hi! I cant get the ToolStripProgressbar property "Style.Continuous" to work in my Windows form application. The progress bar still have the default look(blocks) when i run it. Is there any...
3
by: =?Utf-8?B?Y29yeQ==?= | last post by:
i cant get the playstation 3 to connect to call of duty 4 online through the router but i am able to connect to the game online through the modem. I am able to still get on the internet through the...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.