FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » General » PHP discussions » java script to php (Transfer variable value from java script to php in a php file)
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: java script to php [message #159579 is a reply to message #159578] Thu, 11 June 2009 17:17 Go to previous messageGo to previous message
naudefj is currently offline  naudefj   South Africa
Messages: 3772
Registered: December 2004
Karma:
Senior Member
Administrator
Core Developer
Add to JavaScript part:

window.location.href = "http://your.domain.com/script.php?strUsername=" + strUsername;

Add to PHP part:

echo "strUsername = ".$_GET['strUsername'];
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Undefined index
Next Topic: Preg replace problem (again!)
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Dec 18 03:51:13 GMT 2024

Total time taken to generate the page: 0.03765 seconds