Jump to content

Post self does not update div position. Static var works ok


dmort

Recommended Posts

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]

Link to comment
Share on other sites

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

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.