Transfer form data

driveflexfuel

New Member
Messages
159
Reaction score
0
Points
0
I have a vehicle selection form that auto fills from a database. When someone selects the year it fills in all vehicle makes and so on. The form submits to a php file which checks the database and links to a set shopping cart page. I am trying to find a way to do this without having to send the variables in the web address. I know there is a way but i am going nuts trying to find it.

I attached the following files in a zip file

index.php--the form
db.php----file the form submits to
myjs.js----javascript file that controls the option boxes


Any help on this matter is greatly appreciated
 

Attachments

  • file.zip
    2.7 KB · Views: 4

driveflexfuel

New Member
Messages
159
Reaction score
0
Points
0
I found a solution but I had to make some small changes to my site . Below is the code I used if anyone has been following this post.



Code:
if (array_key_exists('go',$_POST)) {
   if ($_POST['go']=="SendQuery")
   {
      $year = $_POST['year'];
      $model = $_POST['model'];
      $make = $_POST['make'];
      //$data = substr($data,0,strlen(data)-1);
      $link = gourl();
      $link = basename($link);
      $fulldir ="/home/akjdslfakdj";
      include($fulldir.$link);    
      die();
   }
}
 
Top