dmort Posted January 27, 2010 Share Posted January 27, 2010 I want to input x and y position, submit it and see the 'logo1' div position move. I see the variables submit ( logo1x=80&logo1y=80 ) but does not change the div variable or position.If I place in static values, ( $logo1x = '60'; $logo1y = '50'; ) the div moves. Thanks for the help. [attachment deleted by admin] Quote Link to comment https://forums.phpfreaks.com/topic/189960-post-self-does-not-update-div-position-static-var-works-ok/ Share on other sites More sharing options...
teamatomic Posted January 27, 2010 Share Posted January 27, 2010 It works...with register_globals turned on. Put a method=POST|GET in the form tag and then either $logo1x=$_POST['logo1x']; or $logo1x=$_GET['logo1x']; whichever matches your method. A bit or error checking and logic would not hurt either. HTH Teamatomic Quote Link to comment https://forums.phpfreaks.com/topic/189960-post-self-does-not-update-div-position-static-var-works-ok/#findComment-1002270 Share on other sites More sharing options...
sandeep251088 Posted January 27, 2010 Share Posted January 27, 2010 Hey man the last answer is right. But to use those GET || POST you must set your <form> attribute method to post OR get to access its elements value. Quote Link to comment https://forums.phpfreaks.com/topic/189960-post-self-does-not-update-div-position-static-var-works-ok/#findComment-1002272 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.