Page 1 of 9 123 ... LastLast
Results 1 to 10 of 89

Thread: php to self populate existing form

  1. #1
    Join Date
    Nov 2011
    Location
    Cider Region
    Posts
    1,132
    Thanks
    158
    Thanked 3 Times in 3 Posts

    Default php to self populate existing form

    Please use this for as a guide, http://www.coothead.co.uk/coothead-f...test-form.html

    Keeping the form as it is the only edit that is required are the following please.
    "KEY CODE IF KNOWN" should be replaced with "PAYPAL EMAIL FOR INVOICE"

    "VEHICLE MAKE" should be replaced with "PART NUMBER"

    This is how it should work.
    Customer visits this page for example, http://www.theremotedoctor.co.uk/acc...llto=selection
    They decide to select from "ITEM SELECTION" Virgin Chip ID44
    The item photo is then loaded,as you can see its part number is BMW007
    They then click the button "CLICK TO ORDER"
    They will now be taken to this new form of which we are making and it will be called form-order.
    All the fields will then be completed by the customer BUT the field called "PART NUMBER" should have "BMW007" pre-filled.

    Customer would then send me the completed form.
    Once i receive the form the the part number of which was BMW007 should be in the form of a link like example below.

    http://www.theremotedoctor.co.uk/m-i...ef/Bmw007.html

    Sometimes i need to use this link & by clicking on it takes me there.
    Click image for larger version. 

Name:	2392.jpg 
Views:	136 
Size:	60.1 KB 
ID:	6122

  2. #2
    Join Date
    Nov 2006
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,920
    Thanks
    2
    Thanked 267 Times in 262 Posts

    Default

    Hi there theremotedr,

    are you saying that this "part number" in the form will
    remove the need for the "Chassis Number If Honda "?

    I ask this because the "VEHICLE MAKE " was tied to it.

    coothead
    Last edited by coothead; 02-15-2017 at 08:56 PM.
    ~ the original bald headed old fart ~

  3. #3
    Join Date
    Nov 2011
    Location
    Cider Region
    Posts
    1,132
    Thanks
    158
    Thanked 3 Times in 3 Posts

    Default

    Evening,

    This will be a different from so not sure if we need to use a different named js, php etc etc.
    This form does not require Vehicle Make etc.
    Reason being people using this form will know what they require.
    So I get the same details in the form + the part number they wish to order.
    The other form is uploaded and I'm flicking through it as we speak.

  4. #4
    Join Date
    Nov 2011
    Location
    Cider Region
    Posts
    1,132
    Thanks
    158
    Thanked 3 Times in 3 Posts

    Default

    I forgot.
    There is no need for chassis number on this form
    If it easier for you include it BUT ONLY IF HONDA PART NUMBER is applied.

  5. #5
    Join Date
    Nov 2006
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,920
    Thanks
    2
    Thanked 267 Times in 262 Posts

    Default

    Hi there theremotedr

    do you want the form to look like the attached image?

    Does the "Paypal" input need to be required * ?

    If you no longer require the "chassis number", then
    I would remove it, see image.

    coothead
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	new-form.jpg 
Views:	85 
Size:	18.5 KB 
ID:	6126  
    ~ the original bald headed old fart ~

  6. #6
    Join Date
    Nov 2011
    Location
    Cider Region
    Posts
    1,132
    Thanks
    158
    Thanked 3 Times in 3 Posts

    Default

    That looks spot on.

    Yes, PayPal is a required field.
    Whist you are there, can the item of which the part number is for be includdd in my received email.
    I mean in the form of its image ?

    If not or to much work no problem etc.
    Thanks very much.

  7. #7
    Join Date
    Nov 2006
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,920
    Thanks
    2
    Thanked 267 Times in 262 Posts

    Default

    Hi there theremotedr,

    How about if the form just submitted a link to the image instead?

    This would mean having another input similar to the the "PART NUMBER".

    coothead
    ~ the original bald headed old fart ~

  8. #8
    Join Date
    Nov 2006
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,920
    Thanks
    2
    Thanked 267 Times in 262 Posts

    Default

    Hi there theremotedr,

    just a thought, if we include "part number" and "image address" in
    the form they do not really need to be visible to the user do they?

    This is the normal method to use for pre-populated form elements.

    coothead
    ~ the original bald headed old fart ~

  9. #9
    Join Date
    Nov 2011
    Location
    Cider Region
    Posts
    1,132
    Thanks
    158
    Thanked 3 Times in 3 Posts

    Default

    Ok fine.
    Customer doesn't need to see these you are correct.

  10. #10
    Join Date
    Nov 2006
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,920
    Thanks
    2
    Thanked 267 Times in 262 Posts

    Default


    ...and would the image address instead of the image suit your purpose?

    coothad
    ~ the original bald headed old fart ~

Similar Threads

  1. Using Buttons to Populate Form Fields
    By Migey in forum JavaScript
    Replies: 5
    Last Post: 09-20-2012, 03:11 PM
  2. Populate a form using a database.
    By griffinwebnet in forum PHP
    Replies: 2
    Last Post: 07-21-2011, 09:59 PM
  3. having php form data populate SQL database
    By kairick in forum MySQL and other databases
    Replies: 0
    Last Post: 06-29-2010, 11:11 AM
  4. Populate form form MySQL data
    By Rob (SA) in forum MySQL and other databases
    Replies: 13
    Last Post: 04-18-2009, 10:48 AM
  5. Form Lookup with Auto populate
    By chilldude in forum PHP
    Replies: 2
    Last Post: 04-17-2009, 02:18 PM

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
  •