A variable is a named data storage location in memory. Using variables, a computer program can store numbers, text, binary data, or a combination of any of these data types. They can be passed around in code, to other functions and even other applications.

learn more… | top users | synonyms (1)

-2
votes
2answers
46 views

Can i access variable inside another variable? PHP

In PHP, is visible to access variable that is inside another variable? in my case i need to access $value (from $output1) and $value (from $output2) independently. how to do that? thanks if ...
5
votes
3answers
61 views

How to make sure a variable is an object

I have been programming Javascript for a little while now, and still am not quite sure if I am being too lazy or not. I have a lot of: if( typeof( something) === 'undefined' ){ // .. } However, ...
0
votes
2answers
16 views

How to add 2 variable inputs to txt file save name with php

I want to make the name & date enetered in text boxes as the save name for the .txt file the answers save to if that makes sense. Currently I can get it to use the name variable but not both? ...
1
vote
2answers
23 views

Bash variable space in directory path

How can I remove a white space when I use a variable in a directory path. For example, I'm trying to do alias test='echo /david/$1' and when I try test hhh this produces /david/ hhh with a ...
0
votes
2answers
26 views

How do I request a variable from the webserver using AJAX?

I have a loop in my JavaScript that is constantly checking the variable EventCounter, if eventcounter is zero then it proceeds to do an action then increment it ++, And then it proceeds to do nothing, ...
0
votes
1answer
16 views

Why does this form mail script NOT work on server running php4? [closed]

<?php //http://css-tricks.com/snippets/php/send-email/ // from the form $email = htmlentities($_POST['email']); $first_name = htmlentities($_POST['first_name']); $last_name = ...
2
votes
0answers
45 views

How do I use variables to assign constant arguments in Python? [duplicate]

I'm creating an application in Python using Tkinter where there will be a grid of buttons, and I'm creating the buttons using nested for loops. When clicked, each button has a callback function which ...
0
votes
1answer
8 views

Creating a New Object Changes previous Object's Instance Variables

Here is some of my code: PlayerInfo P1 = new PlayerInfo(); P1.setInfo(1); System.out.println("" + P1.X + "," + P1.Y); PlayerInfo P2 = new ...
1
vote
2answers
40 views

What is the difference between @@ and @ in Ruby? [duplicate]

I just started learning Ruby and I have been unable to find a good explanation on what is the difference between @@ and @ in terms of class variables. If anyone can provide a basic intuitive example, ...
2
votes
1answer
40 views

jQuery: using a variable as a selector [duplicate]

I'm having problems using a variable as the selector for a paragraph on which I want to take action. Specifically I have several title elements and the same number of paragraphs. The desired result is ...
-2
votes
2answers
44 views

Pass a php call to javascript variable? [closed]

How to pass a call for example: http://localhost/conn.php?geotable=INFR&geomfield=the_geom&srid=&fields=&parameters=&orderby=&sort=&limit=&offset= into the ...
0
votes
1answer
11 views

My variables are overwritten by the last variable every time I execute code

Ok basically I am trying to draw a table using variables from a form but my problem is that it doesn't print anything. <body> row:<form method="post" action="prelab2.php"> <select ...
1
vote
3answers
38 views

How do I turn a PHP variable string to output HTML?

I am trying to create an autoresponder email and the content is a PHP variable. I want it to output HTML code and right now it's not. //Example: $respondmessage = " Hello $fullname, We are ...
0
votes
1answer
15 views

storing variable in a cookie

I'm trying to store a return variable to a cookie so I could use it in other HTML pages. eg: <li class ="num" id="day5" onclick = "return checkDate(5)"></li> When the user clicks the ...
0
votes
2answers
49 views

Can't access other variable in php

i have problem here. i need to get $pilihdomain in searh_request.php to use in search_response.php i haven't access it yet. i define like this : settings.php <?php $dbHost = "localhost"; ...

1 2 3 4 5 955
15 30 50 per page