PHP window shuts down immediately

Problems with the Windows version of XAMPP, questions, comments, and anything related.

PHP window shuts down immediately

Postby Emanuele » 19. March 2006 05:58

Hi all and welcome to my first post :)

I'm trying to make an online survey and wouldn't want to use a simple mail-to form in HTML, so I tried using PHP. I am using web space from my university, and the webmaster was telling me that I had to convert my file to CGI script by entering some kind of command on the first line of the .php file. I was trying but I can't even open the .php file; some window does open but then it shuts down immediately.

I don't know what to do!! Any ideas?

Posts: 1
Joined: 19. March 2006 05:49

Postby tjthedj » 19. March 2006 06:36

same problem awile back and then a few days later my computer had a harddrive failure so i never got a chance to try and fix the problem.
check your ip address with my new site IP BIRD
great webmaster forums here
Posts: 41
Joined: 29. January 2006 20:40
Location: Texas, USA

Postby WorldDrknss » 23. March 2006 10:56

Not sure if this would help you a bit, but here is a code that you would use in a action in a form.

Code: Select all
$username = $_POST['username'];
$useraddr = $_POST['useraddr'];
$comments = $_POST['comments'];

$to = "admin@localhost";
$re = "Survey";
$msg = $comments;
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html";
$headers .= " charset=iso-8859-1\r\n";
$headers .= "From: $useraddr \r\n";
$headers .= "Cc: another@localhost \r\n";
mail( $to, $re, $msg, $headers );
User avatar
Posts: 292
Joined: 17. September 2005 13:40

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 69 guests