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

    Join Date
    Jan 2004
    Posts
    992
    Rep Power
    13

    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
    Super Moderator
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    Jun 2009
    Location
    Hartford, WI
    Posts
    1,359
    Rep Power
    24
    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 that he knows not is a fool, ignore him. He who knows that he knows not is ignorant, teach him. He who knows not that he knows is asleep, awaken him. He who knows that he knows is a leader, follow him.

IMN logo majestic logo threadwatch logo seochat tools logo