Friday, March 25, 2016

Fishing cart build

Building a Low Budget Fishing Cart.

Version 1.0.

Materials: Garden wagon <$90
                  PVC pipe 1 1/2 " 10 foot length
                  Wire Ties. 
                   
Simple build.  Cut PVC into 1 foot lengths. I used 4, but plan on adding more.
                        Use Wire Ties to fasten the PVC.  Make it tight and straight.  On the initial build I placed these outside the cart to save space inside for further updates.
                 
Additions: You can add a cooler that is no wider than the cart.  It is important to save as much room inside the cart for additional projects.  
                                                 

Updates Planned.  Power sources for lights, and live well. 


  


read more

Thursday, January 28, 2016

Passing a Variable Between HTML, PHP, and Javascript.

Passing a Variable Between HTML, PHP, and Javascript.

Task: Pass a variable from an HTML form to a PHP handler.  Then Pass that variable into Javascript.

Pseudo Code.

    1. Enter data into an HTML text box.
    2. When the submit button is clicked POST the data into the PHP handler
    3. Place posted data into a PHP variable
    4. Pass the PHP variable into a Javascript variable.

HTML Code.

 <body>
<form action="passphphandler.php" method="post">
  Enter Text:<br>
  <input type="text" name="stringtext" value="">
  <br>
  <br>
  <input type="submit" value="Submit">
</form>
  </body>


PHP Code.

<body>
 
<?php
$php_var =$_POST["stringtext"];
?>


    <script>
      var js_var = "<?php echo $php_var; ?>";
       alert(js_var);

  </body>

read more