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]

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

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.