Jump to content

chrisroane

New Members
  • Posts

    3
  • Joined

  • Last visited

    Never

About chrisroane

  • Birthday 08/20/1983

Contact Methods

  • MSN
    chris@chrisroane.com
  • Website URL
    http://www.montanaprogrammer.com/

Profile Information

  • Gender
    Male
  • Location
    Helena, MT

chrisroane's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Basically all you would do is the following: 1. Before you run the exec() command you will want to insert data into a database table. I usually use MySQL, but you could use anything, including a text file for this. If you do not know how to insert data into a mysql table, look for tutorials on using php/mysql on Google. Unless you get someone to write the whole thing for you, you will probably need to understand the basics in working with a mysql table in php. 2. Now on the php shell script (emailsend.php), you will simply select the row that you just added in the other script. I am not sure if you can send get variables to a php shell script or not, but it would be easy to test (so instead of emailsend.php it would be emailsend.php?var1=value1). You would want to pass the primary key value from your main script to emailsend.php so that you could select the correct row. Doing it this way would display the thank you page before the exec() command finished, which would make sense if it takes your server a while to send emails. You could also use this same technique to run a cron job that processes emailsend.php (like what d_barszczak suggested).
  2. Without spending a lot of time on this, have you verified that all of the data is in the $_POST array on the processing page? On your processing page, put this code: echo '<pre>'; print_r($_POST); echo '</pre>'; exit; and see if all of the checkbox data was included right. If it wasn't, than there may be some issues with your JavaScript. You could also try putting in a unique "id" value for each checkbox (which you could do with a simple counter variable). If this still doesn't help you figure it out, let me know and I can take a closer look.
  3. Hello, There are several options in how I see it. 1) If you want to run a shell command, than your best bet would be to first store the data in a table and then access that data through the PHP shell script. 2) Another option that I prefer myself, would be to use curl. But then you will need to wait for the curl request to process (as far as I know). There may be a way of having the curl POST message sent and have it not wait for a response, but I have never tried this before.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.