like(var name="first name";
i want to send this name to
is it possible ?
if possible how it is?
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.
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';
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
Thank u for your response... i am using like that only..
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)
This topic is now closed. New replies are no longer allowed.