php_gromnie Posted November 8, 2006 Share Posted November 8, 2006 I have a simple form and I need to post the info to multiple locations once the user clicks submit. It is a form to interact with a mass mail system, so the data needs to be posted to an ASP page, that resides on the mass mail system's server, but then I would also like to have the data sent to a "success" page that I design, so I can show the user what information they just inputted.. Any suggestions? I am quite new to PHP. Thanks in advance!-Garrett Link to comment https://forums.phpfreaks.com/topic/26582-post-a-form-to-multiple-locations/ Share on other sites More sharing options...
trq Posted November 8, 2006 Share Posted November 8, 2006 Do you have control over this asp page? You could simply redirect to the success page. Link to comment https://forums.phpfreaks.com/topic/26582-post-a-form-to-multiple-locations/#findComment-121611 Share on other sites More sharing options...
php_gromnie Posted November 8, 2006 Author Share Posted November 8, 2006 Unfortunately I do not have any control over the ASP page. Link to comment https://forums.phpfreaks.com/topic/26582-post-a-form-to-multiple-locations/#findComment-121648 Share on other sites More sharing options...
Orio Posted November 8, 2006 Share Posted November 8, 2006 I suppose you dont care about the result of the asp page, you just need to pass the information to it.If that's so, here's what you can do- You can make a php page that will be the form's action. That php page will use [url=http://www.php.net/curl]cURL[/url] to send the post data to the asp page, and ignore the result. After sending the data, redirect to the "success" page.Orio. Link to comment https://forums.phpfreaks.com/topic/26582-post-a-form-to-multiple-locations/#findComment-121654 Share on other sites More sharing options...
php_gromnie Posted November 8, 2006 Author Share Posted November 8, 2006 It seems that would work, but would require a recompile of PHP, and I'm not sure if the server this is hosted on will do that. Is there any other way to do it with standard PHP code? And yes, I don't care about the result of the ASP page, I just need to pass the info to it. The help is greatly appreciated!-Garrett Link to comment https://forums.phpfreaks.com/topic/26582-post-a-form-to-multiple-locations/#findComment-121682 Share on other sites More sharing options...
php_joe Posted November 8, 2006 Share Posted November 8, 2006 once you've posted the info to the asp page will it allow you to redirect the viewer to another page? You could put the "script submitted" code on that page.Joe Link to comment https://forums.phpfreaks.com/topic/26582-post-a-form-to-multiple-locations/#findComment-121689 Share on other sites More sharing options...
Orio Posted November 8, 2006 Share Posted November 8, 2006 @php_joe-[quote author=php_gromnie link=topic=114277.msg464970#msg464970 date=1163007746]Unfortunately I do not have any control over the ASP page.[/quote]I still dont understand- why you cant use my idea?Orio. Link to comment https://forums.phpfreaks.com/topic/26582-post-a-form-to-multiple-locations/#findComment-121700 Share on other sites More sharing options...
php_joe Posted November 8, 2006 Share Posted November 8, 2006 Sorry, I took it to mean that he didn't have control over the code, so I was asking whether he could put in an exit page (some pages allow you to do this).Anyway... maybe he just doesn't know how to use cURL (I know that I sure don't :P)Joe Link to comment https://forums.phpfreaks.com/topic/26582-post-a-form-to-multiple-locations/#findComment-121701 Share on other sites More sharing options...
php_gromnie Posted November 8, 2006 Author Share Posted November 8, 2006 It's true I have no idea how to use cURL :). But from what I was reading Orio, it seems like cURL is an addon to PHP that doesn't come with the standard installation. I don't have control over the version or modules of PHP that are running, it's up to my ISP to install any addons, and I'm not sure they will do it. Or am I mistaken? Is cURL part of "regular PHP" ? How can I test to see if cURL is installed and running on the server I am hosting these pages? Thanks,-Garrett Link to comment https://forums.phpfreaks.com/topic/26582-post-a-form-to-multiple-locations/#findComment-121781 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.