Static means "constant - never changing".
Dynamic is can be changed.
By hardcoding a static value like value="somevalue". The value will always be "somevalue". Where as using a language like PHP and setting the value to a variable (vary-able - the value can vary) you can have the value change depending on different conditions.
example.
lets say we have a variable called $day which returns the current day. If the value of $somevariable is monday, the above script will print 'Today is Monday' - If it is not Monday the above script will print out 'Today is not Monday'.Code:if($day == 'monday') $somevariable = 'Today is Monday'; else $somevariable = 'Today is not Monday'; echo $somevariable;
This is how we work dynamicaly. I hope that clears that up, if not i'll be happy to explain in yet more detail at a later time.
What you're refering to about popups and stuff sounds like the HTML attribute title="some title" <- Thus will give a sort of popup when hovered over saying some title. value="some value" has nothing to do with popups, but sets the default value of an element. Ever loaded a form up where some of the fields are already filled out? Edited a comment on here? The value attribute is what is used to preload the input value of the given field in the form. It's loaded dynamicaly from a database and stored in a variable. Similar to $eid.



Reply With Quote


Bookmarks