SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Hybrid View

  1. #1
    SitePoint Member famousartguy's Avatar
    Join Date
    Jun 2006
    Location
    Birmingham
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Smile Add an Additional field on a contact form

    How do you add an additional field on a web (contact) form like on evilshare.com [add another file] ?? Is there a script?
    I don't want to upload anything, just add additional fields for input, but I don't want it to show, cause userA may use 2 fields and userB may use 6
    I want them to add fields as needed.

    Is there an easy way to do this?
    Any help would be wonderful!
    thanks

  2. #2
    SitePoint Enthusiast Tygatur's Avatar
    Join Date
    Apr 2006
    Location
    Germany
    Posts
    53
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    function addField(myform,type,val)
    {
    var inp=document.createElement('input');
    inp.setAttribute('type',type);
    if(val!=null)inp.setAttribute('value',val);
    myform.appendChild(inp);
    }

    Not tested.
    to code or not to code ?
    that's too much of a question for a signature.

  3. #3
    SitePoint Member famousartguy's Avatar
    Join Date
    Jun 2006
    Location
    Birmingham
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What would the HTML be and what parts do i change..sorry not sure about coding in javascript? newbiex100000


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •