Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 4 of 4
  1. #1
    Junior Member juicylemons's Avatar
    Join Date
    Jan 2018
    Posts
    10
    Member #
    58245

    Can anybody write some PHP for me?

    I have a form but no php. Is anybody willing to write a PHP file form handler for me?

    This is the form:

    Test Form

    and this is the code:

    HTML Code:
    <!DOCTYPE html>
    
    <html>
    
    <head>
    <title>Test Form</title>
    
    <meta charset="UTF-8" />
    
    <link rel="stylesheet" href="mail.css" type="test/css" media="all" />
    </head>
    
    
    
    <body>
    
    
    <form class="form">
    
    <p class="name">
    <label for="name">Name</label>
    <input type="text" name="name" id="name" placeholder="Your Name" required />
    </p>
    
    <p class="company">
    <label for="company">Company Name</label>
    <input type="text" name="company" id="company" placeholder="Example Ltd" required />
    </p>
    
    
    <p class="email">
    <label for="email">Email Address</label>
    <input type="text" name="email" id="email" placeholder="email@example.com" required />
    
    </p>
    <br>
    <br>
    <br>
    
    <p class="nothing">
    <label for="company">If you have a purchase order number please enter it here. If you wish to send a copy of your purchase order, please email it to: [email]accounts@elastothane.com[/email]</label>
    </p>
    <p class="po">
    <label for="email">Purchase Order Number</label>
    <input type="text" name="po" id="po" placeholder="Purchase Order Number" />
    
    </p>
    
    <br>
    <br>
    <br>
    
    <p class="nothing">
    <label for="company">Please select the product you require, size and colour.</label>
    </p>
    
    <label for="product1">
    <span>Product: </span>
    <select id="subject" name="subject" tabindex="4"> 
    <option value="hello">Please select a product</option>
    <option value="quote">7001</option> 
    <option value="general">7065.05</option>
    <option value="general">7065.10</option>
    <option value="general">7065.15</option>
    <option value="general">7061.05</option>
    <option value="general">7061.10</option>
    <option value="general">7061.15</option>
    </select>
    </label>
    
    <label for="size1">
    <span>Size: </span>
    <select id="subject" name="subject" tabindex="4"> 
    <option value="hello">Please select a size</option>
    <option value="general">444/450KG (A&B)</option> 
    <option value="general">32KG Pail Set (A&B)</option>
    <option value="general">Primer Kit</option>
    <option value="general">1400 Top Coat Kit</option>
    </select>
    </label>
    
    <label for="colour1">
    <span>Colour: </span>
    <select id="subject" name="subject" tabindex="4"> 
    <option value="hello">Please select a colour</option>
    <option value="general">Neutral</option> 
    <option value="general">Black</option>
    <option value="general">Grey</option>
    <option value="general">CG Edge Grey RAL 7037</option>
    <option value="general">CG Edge Charcoal RAL 7016</option>
    <option value="general">CG Edge Blue RAL 5005</option>
    <option value="general">1400 black</option>
    <option value="general">1400 white</option>
    </select>
    </label>
    
    
    <br>
    <br>
    <br>
    
    <p class="nothing">
    <label for="company">If you require a second product or a primer/top coat, please select it here.</label>
    </p>
    
    
    <label for="product2">
    <span>Product: </span>
    <select id="subject" name="subject" tabindex="4"> 
    <option value="hello">Please select a product</option>
    <option value="quote">7001</option> 
    <option value="general">7065.05</option>
    <option value="general">7065.10</option>
    <option value="general">7065.15</option>
    <option value="general">7061.05</option>
    <option value="general">7061.10</option>
    <option value="general">7061.15</option>
    </select>
    </label>
    
    <label for="size2">
    <span>Size: </span>
    <select id="subject" name="subject" tabindex="4"> 
    <option value="hello">Please select a size</option>
    <option value="general">444/450KG (A&B)</option> 
    <option value="general">32KG Pail Set (A&B)</option>
    <option value="general">Primer Kit</option>
    <option value="general">1400 Top Coat Kit</option>
    </select>
    </label>
    
    <label for="colour2">
    <span>Colour: </span>
    <select id="subject" name="subject" tabindex="4"> 
    <option value="hello">Please select a colour</option>
    <option value="general">Neutral</option> 
    <option value="general">Black</option>
    <option value="general">Grey</option>
    <option value="general">CG Edge Grey RAL 7037</option>
    <option value="general">CG Edge Charcoal RAL 7016</option>
    <option value="general">CG Edge Blue RAL 5005</option>
    <option value="general">1400 black</option>
    <option value="general">1400 white</option>
    </select>
    </label>
    
    <br>
    <br>
    <br>
    
    <p class="nothing">
    <label for="company">If you require a third product or a primer/top coat, please select it here.</label>
    </p>
    
    
    <label for="product3">
    <span>Product: </span>
    <select id="subject" name="subject" tabindex="4"> 
    <option value="hello">Please select a product</option>
    <option value="quote">7001</option> 
    <option value="general">7065.05</option>
    <option value="general">7065.10</option>
    <option value="general">7065.15</option>
    <option value="general">7061.05</option>
    <option value="general">7061.10</option>
    <option value="general">7061.15</option>
    </select>
    </label>
    
    <label for="size3">
    <span>Size: </span>
    <select id="subject" name="subject" tabindex="4"> 
    <option value="hello">Please select a size</option>
    <option value="general">444/450KG (A&B)</option> 
    <option value="general">32KG Pail Set (A&B)</option>
    <option value="general">Primer Kit</option>
    <option value="general">1400 Top Coat Kit</option>
    </select>
    </label>
    
    <label for="colour3">
    <span>Colour: </span>
    <select id="subject" name="subject" tabindex="4"> 
    <option value="hello">Please select a colour</option>
    <option value="general">Neutral</option> 
    <option value="general">Black</option>
    <option value="general">Grey</option>
    <option value="general">CG Edge Grey RAL 7037</option>
    <option value="general">CG Edge Charcoal RAL 7016</option>
    <option value="general">CG Edge Blue RAL 5005</option>
    <option value="general">1400 black</option>
    <option value="general">1400 white</option>
    </select>
    </label>
    
    <br>
    <br>
    <br>
    
    <p class="text">
    <textarea name="text" placeholder="Any special instructions or information?" /></textarea>
    
    </p>
    
    <br>
    <br>
    <br>
    
    <p class="submit">
    
    <input type="submit" value="send" />
    
    
    </form>
    
    </body>
    Last edited by Ronald Roe; Jan 27th, 2018 at 04:51 AM.

  2.  

  3. #2
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,686
    Member #
    5580
    Liked
    716 times
    I don't have time to write anything right now.

    I do suggest that you, or the business, purchase Adobe to create PDF files with fillable fields.

    https://acrobat.adobe.com/us/en/acro...s-creator.html

    With that, you create a PDF order form that the customer can fill out and submit. They can do it all online, save a copy for themselves, and you get the PDF saved on your website or emailed to you with the fields filled out by the customer.

    It's better than a web page form because the business can simply modify the PDF file if they wish to make changes to it. No HTML or PHP required.

    There are two approaches to this:

    1) You purchase Adobe software that is downloaded and run on a computer.
    2) You do the PDF forms online.

    Either way, it will cost money. Anything you find for "free" is not really free.

    But you are doing this for a business, so it should be an expense they are willing to pay. After all, you see how hard it is to get this done using PHP.

    As I mentioned earlier, your customers should be registering online within your website and doing all of their ordering directly on your website. But that requires PHP and a programmer. So, again, it will cost money.


  4. #3
    Member Matt @ BSH's Avatar
    Join Date
    Jan 2018
    Location
    Liverpool, UK
    Posts
    60
    Member #
    58134
    Liked
    5 times
    What is it you actually want the script to do when executed? Store in a database? Validation? E-Mail? Please explain further and I'll try and help.

  5. #4
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,686
    Member #
    5580
    Liked
    716 times
    For now, the OP just wants it emailed, using old PHP scripts. They understand now that things need to be updated and done differently (using SQL/PDO) in the future. They have a bigger project ahead of them, but willing to settle on the email for now. Bad idea in my opinion, but it is what they want.



Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 05:03 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com