Jump to content

no results from post


davo
 Share

Recommended Posts

Can anyone see something obvious why i don't get seem to be able to access the fields in post as below please?

dmc.dudmc.com/destination-deal-finder-results/

<?php 

/**
 * Page template
 *
 */

include("./dmcheader.inc"); 
include("./myfunctionlib.inc");
$current_page = $page->id;

$upperbudget = $input->post['upperbudget'];
$eaddress = $input->post['eaddress'];


echo "              <div class='container' ><br />

                        <div class='row'>
                          <div class='col-md-12'>
                          <img class='img img-responsive hidden-xs mymargin ' src={$page->single_image->url}>
                          </div>
                        </div>

                        <div class='row top-buffer'>
                           <div class='col-md-6'  >";


echo $page->body;

    foreach($input->post as $key => $value)
        echo htmlentities("$key = $value") . "<br />"; 
        foreach($input->get as $key => $value)
        echo htmlentities("$key = $value") . "<br />"; 

?>



<form role="form" action="http://dmc.dudmc.com/destination-deal-finder-results/" method="post">
  <div class="form-group">
    <label for="exampleInputEmail1">Email address</label>
    <input type="email" class="form-control" id="exampleInputEmail1" placeholder="Enter email">
  </div>
  <div class="form-group">
    <label for="upperbudget">Budget</label>
    <input type="text" class="form-control" id="upperbudget" placeholder="budget in euros">
  </div>

  <button type="submit" class="btn btn-default">Submit</button>
</form>



<?php



				echo " </table>

		           </div>

                           <div class='col-md-6'>";
                      echo "<h3>Upper budget = euro $upperbudget $eaddress </h3>";
                           dealfinder($upperbudget);
                           echo "
                           
                           </div>

                        </div></div>
                    </div> <!-- end container -->";




include("./dmcfooter.inc");
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...