Forum Moderators: coopster
Im working on a project for a ewb servicing company in san diego. And i have a form set up, that sends information to a server that we're doing buisness with. Now they have on their side (this is an asp page) that shows the information just submitted, but it is pretty ugly. Is there anyway (or any tricky method you can think of) that will have the form submit the information to the server (it uses the GET action), while sending the user to another page, so that i can format it the way i want it to look, while also outputting what they put in?
So i need it to send the information to the server, but also to another page, so i can make the page good looking. I tried a few small things, but it would only go to another page, and NOT forward the information to the second page. Could anyone PLEASE help me? Thanks alot in advance! Who ever helps me is a life saver. Thanks!
Have it send the information (still using the "get" action, to a page that say, says "processing", and that next page sends the information to the server, and then also to another page and then directs its self to that other page? Oh man im confusing my self here hehe someone help AHHH!
[edited by: ergophobe at 3:00 pm (utc) on Sep. 10, 2004]
[edit reason] URL exemplified - no commercial URLs as per TOS [/edit]
Im sort of confused about the socket but ill look into it. If the reads it correctly through a get method, will it read it correctly through a post as well? I thikn it might need the variables through the url but ill look into that after your next reply. Also where would i put that header information? I click on submit and then it sends the info, where does that header come into play?
Im sorry if im being terribly noobish, but i appreciate your patience!
Once that's done print the location header with any necessary variables in the url and the user will be taken there.
Make sure you don't print anything to the browser before this point.
The form "action" should be set to the page that's on the php server, the php server will get all the info that's been input via the $_GET array - make sure it doesn't do any output - you can put an ob_start(); at the top of the php page to make sure - and then some script to build up the asp page url again it needs to be directed to, I guess with this same info -
$requeststring = '';
if(!empty($_GET)){
$i = 0;
foreach($_GET as $k=>$v){
if($i >0) $reqeststring .= '&';
$requeststring .= $k.'='.$v;
$i++;
}
}
header('Location: [aspserver...]
If you have problems, look up the php functions on magic_quotes_gpc() and stripslashes()
[edited by: ergophobe at 3:04 pm (utc) on Sep. 10, 2004]
[edit reason] url changed as per TOS [/edit]