Results 1 to 2 of 2
  1. #1
    Newbie
    Join Date
    January 18th, 2005
    Posts
    13
    I am working on a particular form on my site. I have forms down fairly well, but there is one thing I'm not clear on how to do.

    Typically on a form, the user enters information thus filling out the form. One of the fields I need to be pre-filled and cannot be changed by the visitor. I do need that information passed along with the form, even though the user cannot change or edit the field. For clarification, here is an example.

    Form #1 will have information based on a particluar product. The form would be something like
    First Name:
    Last Name:
    Address:
    Product Name: Product A (this value should not be editable by the customer)

    Form 2:
    First Name:
    Last Name:
    Address:
    Product Name: Product B (again, cannot be changed)

    I know I can drop that field from the form and just have it as regular text, but how can I then pass that value with the rest.
    I'm sure it is done with a hidden value but I do not know the proper syntax to do that.

  2. #2
    Schlaumeier cumbrowski's Avatar
    Join Date
    January 18th, 2005
    Location
    Fresno/CA
    Posts
    640
    Make it a hidden field.

    <input type='hidden' name='bla' value='whatever'>
    The user can not see it and it gets passed, when the form gets submitted.


    Carsten

    Shop-Links.net Partner
    http://www.shop-links.net
    Sign-up for our Affiliate Program
    http://www.shareasale.com/shareasale...erchantID=2123

    If you can't move things, try harder!

  3. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. Question regarding https & forms
    By dMahoney in forum Programming / Datafeeds / Tools
    Replies: 3
    Last Post: March 22nd, 2011, 11:07 PM
  2. Question about ASP and forms
    By Eric Ewe in forum Programming / Datafeeds / Tools
    Replies: 1
    Last Post: May 21st, 2010, 12:46 AM
  3. CoReg Path Forms Question
    By CoolAffiliate in forum Programming / Datafeeds / Tools
    Replies: 0
    Last Post: February 24th, 2007, 12:34 PM
  4. Webmerge and forms question
    By thealarmtech in forum WebMerge (Fourthworld.com)
    Replies: 2
    Last Post: March 16th, 2006, 04:19 PM
  5. Question about forms
    By bghtn in forum Programming / Datafeeds / Tools
    Replies: 0
    Last Post: January 3rd, 2003, 05:00 PM

Posting Permissions

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