Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require_once '01_Dbfuncs.php';
- include '03_Menu.php';
- $err="";
- if($_SERVER["REQUEST_METHOD"]=="POST")
- {
- $pname = trim(filter_input(INPUT_POST,'pname',FILTER_SANITIZE_SPECIAL_CHARS));
- $packtype = trim(filter_input(INPUT_POST,'packtype',FILTER_SANITIZE_SPECIAL_CHARS));
- $recomprice = trim(filter_input(INPUT_POST,'recomprice',FILTER_SANITIZE_SPECIAL_CHARS));
- $fmlycode = $_SESSION ['fcode'];
- AddProduct($pname, $packtype, $recomprice, $fmlycode);
- header("Location:07_Purchaselist.php");
- }
- ?>
- <!DOCTYPE html>
- <!--
- To change this license header, choose License Headers in Project Properties.
- To change this template file, choose Tools | Templates
- and open the template in the editor.
- -->
- <html>
- <head>
- <meta charset="UTF-8">
- <title>add product to family</title>
- </head>
- <body>
- <h1>
- add product to family
- </h1>
- <form method = "post">
- Product name:
- <input type = "text" name ="pname" ><br><br>
- Pack type:
- <select name="packtype">
- <option value="variety"> variety </option>
- <option value ="package"> package </option>
- </select><br><br>
- Recommended price:
- <input type ="text" name ="recomprice" ><br><br>
- <input type="submit" value="Add product">
- </form>
- <?php
- // put your code here
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement