#1
  1. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Jan 2004
    Posts
    965
    Rep Power
    11

    Create a new hidden field based on another one


    Hi there,

    I have this hiddent field:

    PHP Code:
    <input type="hidden" id="newsletter_agentCode" name="agent_code" value="stay" /> 
    I want to create an additional hidden field which looks like this:

    PHP Code:
    <input type="hidden" value="stay" name="tmp"
    I want to create that field based on the first hidden field by using the

    PHP Code:
    id="newsletter_agentCode" name="agent_code" value="stay" 
    part.

    How would I do this?

    Thanks
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Jun 2009
    Posts
    667
    Rep Power
    6
    I'm kinda lost as to what you mean with the third line. It just sounds you want to make a few identical fields. Could you define a bit more?
    He who knows not and knows not he knows not: he is a fool - shun him. He who knows not and knows he knows not: he is simple - teach him. He who knows and knows not he knows: he is asleep - wake him. He who knows and knows he knows: he is wise - follow him

IMN logo majestic logo threadwatch logo seochat tools logo