I want to pass the variable from php page to another without using sessions.
here’s SearchCustomer.php page which have the from
<form action="controllers/Customer.controller.php" method="post">
<label for="cellPhoneNo">cell phone number</label>
<input type="text" name="cellPhoneNo" class="textField"/>
<span id="cellphonePrefix"></span>
<label for="telephone">telephone </label>
<input type="text" name="telephone" class="textField"/>
<input type="submit" name="searchCustomer" value="بحث"/>
in Customer.controller.php I search for customer and return a $result, I want to pass the variables defined in Customer.controller.php to SearchCustomer.php page which the from is submitted from without using sessions.
As far as I understand your problem: You want to perform the search in
Customer.controller.phpand immediately display the results inSearchCustomer.php, right?Well, that smells like AJAX 🙂
Try this (using jQuery):
SearchCustomer.php
Customer.controller.php
The code is untested, but you get the idea 😉