Can you use PHP to dynamically change form field values like Javascript

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shingabiss
    New Member
    • Oct 2006
    • 15

    #1

    Can you use PHP to dynamically change form field values like Javascript

    Is there a way to use PHP to address the HTML DOM like is done in Javascript?

    For example, in Javascript:

    formname.formfi eld.value = variablename;

    Can PHP operate in the same way?
  • ronverdonk
    Recognized Expert Specialist
    • Jul 2006
    • 4259

    #2
    Not available in PHP (yet). Use JS to manipulate the dom fields.

    Ronald :cool:

    Comment

    • shingabiss
      New Member
      • Oct 2006
      • 15

      #3
      Thank you.

      Can Javascript use the posted PHP variables?

      Comment

      • ronverdonk
        Recognized Expert Specialist
        • Jul 2006
        • 4259

        #4
        Don't understand what you mean by 'posted variables'. Before or after the form is submitted? Please show an example.

        Ronald :cool:

        Comment

        Working...