From: Arlo L. <ar...@ar...> - 2009-12-23 19:44:06
|
Hi Lennie, > I need to do the following and not sure how to get it done. > > 1. Fill in form (submit) > 2. Gather the data and store it into my database (This is not a problem) > 3. Build a custom URL string based on the form > 4. Post the new data to a https form on another site for CC entry and > validation Do you want the remote form to appear so that users can complete their entries there, or do you want to just post data to it in the background and maintain control of the workflow? If the latter, you can use curl with the -d option, or fsockopen with a POST request. Both of those methods will let you parse the results from the remote form and then do whatever you want in response. If the former, I think you need to print some hidden fields with your values and print a JavaScript document.form_name.submit() to send the values to the remote form and display it. That's how I've done it and seen others do it. Maybe someone else knows a cleaner (PHP-only) way to handle that? Cheers, -Arlo _______________________________ Arlo Leach 773.769.6106 http://arlomedia.com |