473,549 Members | 2,715 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Is it possible to set the value of a dropdownlist to a session variable by using php?

14 New Member
I am trying to store the selected value of an item in my drop down list into a session variable after selecting it and pressing a button to add it to a session variable. My question is,how to display the selected item of dropdownlist on the dropdownlist of next page
Jun 12 '15 #1
1 1200
computerfox
276 Contributor
If you are using cookies, it would be $_COOKIE['cookie_name'];
If you are using sessions, it would be $_SESSION['session_name'];
Can you verify that the data has been set?
Jun 13 '15 #2

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

Similar topics

1
21877
by: Joe | last post by:
I am new to web development at all but maintaining a .NET site that utilizes .apsx pages using vbscript, javascript,and C#. There is a function I am doing that I only can find out how to do in javascript (direct url post to variable then close window), however now I need to access a session variable from that javascript. I could do it...
10
2235
by: Blaxer | last post by:
There is probably a really easy way to do this, so please forgive me but I would like to set the value of a variable from a variable, an example would be... function Calculate_Something(ByVal multiplyer as integer, ByVal variable as ___?) variable = 5 * multiplyer end function What I would like this function to do is take the name of the...
2
19560
by: sunnyboy | last post by:
Hi Like to change the value of a session variable by clicking a link ------------------------------ <?php session_start(); session_register("cat"); ?> <a href="index.php" onMousedown=<? $_SESSION=1; ?>Set cat to
1
9790
by: Roger | last post by:
Hi all On a page I am using a repeater which is linked to an ObjectDataSource (same page): <asp:Repeater ID="VideoListNewestRepeater" runat="server" DataSourceID="VideoListNewestDataSource"> The code for ObjectDataSource looks like this:
5
1658
by: mallz | last post by:
hi, i need to get the value of the variable which i have put into a session variable in another jsp form. Im using this to get the value: (String)session.getAttribute("thename") But, im not able to retrieve a string separated with blanks. It is truncating the characters as soon as it encounters a blank space. what do i do to solve this?
2
9158
by: Divya Khullar | last post by:
Is there a way of updating session variable in JS.
1
2090
by: unnikrishnan123 | last post by:
C# code for storing a selected date time value to a variable. using a DateTimePicker.
4
3073
by: keyser soze | last post by:
this is unbeliveable... i'm trying to set a session var "x" from a local var "y" .... session("x")= y response.write( session("x") ) --it outputs the content! response.end --stop here ....
3
4690
PLA2000
by: PLA2000 | last post by:
I want to store a value that I enter in a textfield in a session variable to use on another page without submitting the value to a data table. I tried: <% Session(“firstname”)= Request.Form(“First”) %> I also tried: <% Session(“firstname”)= First.Text %>
3
2878
by: Shaikh Rais | last post by:
i want to change my asp.net session variable value in my javascript,I try Session("variablename")=4; i found error object Not Found
0
7518
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7956
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
6040
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5087
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3498
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3480
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1935
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1057
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
757
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.