is there a way to get a value that a viarble has on one php file ...
save it to a javascript or wherever
and then include it to another php file..
thanksss

Member Avatar for diafol

Yes, but you can propagate the variable in a number of ways.

1) Place it into a cookie
2) Place it into a session (probably the easiest method)
3) Place it into a querystring (build up the url to the other page)
4) Place it into a form (if submitting the form to the other page)

I don't think that putting it into js first wil be very useful, unless you're writing a cookie or url or form field value with js. It can be done directly be php.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.