I'm getting the following error on run

Parse error: syntax error, unexpected T_VARIABLE in /www/99k.org/g/a/t/gatewayarcanum/htdocs/process.php on line 2

the code i'm using is

<? php
$name = $_POST['name'];
$email = $_POST['email'];
$how_found = $_POST['how_found'];
$comments = $_POST['comments'];

mail("psidonwav@gmail.com", "Contact Form Submission", "Name: $name /n E-mail: $email /n How Found: $how_found /n Comments: $comments", "From: $email");
?>

help please

Recommended Answers

All 2 Replies

this is your error:

<? php

it must be:

<?php

ok?

much thanks

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.