[PHP-WIN] need help! plz

2008-03-24 Thread Hooman Fatoorehchi
dear all, I want to make a form-to-email page and I want to diplay a messagebox after the mail is send and then I want it to be redirected to another page. I used JS for the msgbox but the header function wont work in this case. please help me! here is the code ... mail( "m <[EMAIL PROTECTED]>[EM

Re: [PHP-WIN] need help! plz

2008-03-24 Thread John Mertic
You could just do the header line in js as well, which would work. So change to: mail( "m <[EMAIL PROTECTED]>[EMAIL PROTECTED]", "Feedbacks",$message, "From: $email" ); echo "echo "alert('Your message was sent successfully!'); document.location.href = 'htt

Re: [PHP-WIN] need help! plz

2008-03-24 Thread Jarrett Meyer
You can't call the header after you've sent output to the client (i.e. the 'echo' statement). Redirect first, then check the mail state, stored as a session variable or something similar. Hooman Fatoorehchi wrote: dear all, I want to make a form-to-email page and I want to diplay a messageb

[PHP-WIN] Issue with MSSQL and PHP under windows

2008-03-24 Thread Justin
I've been trying to track down a gremlin within our servers for months now and can't seem to determine what I can do to resolve this issue. My existing setup is a MSSQL server running on Server 03 and it's a fairly beastly server. It's a 3.0ghz, dual processor, quad core server with 4 gigs of