+ Reply to Thread
Results 1 to 3 of 3

Thread: Transfer form data

  1. #1
    driveflexfuel is offline x10 Sophmore driveflexfuel is an unknown quantity at this point
    Join Date
    Jul 2008
    Posts
    159

    Transfer form data

    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
    Attached Files

  2. #2
    mikehunt22 is offline x10Hosting Member mikehunt22 is an unknown quantity at this point
    Join Date
    Nov 2008
    Posts
    16

    Re: Transfer form data

    maybe hidden values in your form and $_GET or $_POST to get the data

  3. #3
    driveflexfuel is offline x10 Sophmore driveflexfuel is an unknown quantity at this point
    Join Date
    Jul 2008
    Posts
    159

    Re: Transfer form data

    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();
       }
    }

+ Reply to Thread

Similar Threads

  1. HTML help...
    By anuj_web in forum Programming Help
    Replies: 5
    Last Post: 05-08-2008, 11:22 AM
  2. re: How to save form data as csv
    By jdaniels in forum Scripts & 3rd Party Apps
    Replies: 10
    Last Post: 12-09-2007, 06:01 AM
  3. Created and writing form data a to CSV file
    By HeavyMetalMan in forum Free Hosting
    Replies: 0
    Last Post: 12-05-2007, 02:55 PM
  4. How to transfer files and data?
    By tychicus in forum Scripts & 3rd Party Apps
    Replies: 0
    Last Post: 10-09-2006, 12:46 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers