ompraaksh — 2012-07-17T02:01:39-04:00 — #1
like(var name="first name";
i want to send this name to
is it possible ?
if possible how it is?
system — 2012-07-17T02:56:26-04:00 — #2
2 options are to use ajax or just append the variable name and value as a query string to the url of the php script that sets the session variable.
There are other options as well but unless you are more specific in exactly what you want to do not all the options would be suitable.
cups — 2012-07-17T05:14:16-04:00 — #3
You can also send a variable as a hidden field in a form.
// place holder in your html form
<input type=hidden name=username value="" />
// Shunt a value to the html element using JS
oFormObject.elements["username"].value = 'Jon Lord';
chris_upjohn — 2012-07-17T05:38:51-04:00 — #4
The only way you can do this is by
- using a form to $_POST the values to the server
- using ajax to send the data and store it
ompraaksh — 2012-07-17T05:44:06-04:00 — #5
Thank u for your response... i am using like that only..
markdidj — 2012-07-19T21:07:25-04:00 — #6
markdidj — 2012-07-20T08:31:39-04:00 — #7
markdidj — 2012-07-20T09:29:29-04:00 — #8
Sorry, haven't been here for a long while. Missed a few "$"'s on the PHP part of the post above and the edit button has gone. I guess you can only edit a few times. Make sure you put them in for it to work. ($name not name)