Jump to content

type = Button & onclick() type of functionality for php, static_variables


ajoo

Recommended Posts

Hi all, 

 

I want to know if PHP can handle button clicks like javascript. If  i did not wish to use javascript in php is there a way for me to achieve it. 

 

Also I would like to know how I may define a static variable whose value 'sticks' unless incremented or decremented specifically . Thanks loads

Hi Trq, Thanks. Is that a no to static variables as well? If I cannot use static variables then the only option I see is to use $_SESSION variables. Would that be elegant? 

 

I am going back and forth between a form draw and the corresponding code depending upon one of the two buttons pressed. The count of the record is important for both the buttons. When i go thru one routine to the form and back to the routine, i lose variable values? I wonder if this is comprehensible. lol.  So I am stuck

 

Thanks

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.