Posted: Tue Nov 25, 2003 9:07 am
I copy and pasted the code and i am also getting a parse error on line 9.
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
<?php
//Define your variables here
$date = $_POST['name'];
$name = $_POST['title'];
$company = $_POST['company'];
$address = $_POST['address'];
$location = $_POST['location'];
$zipcode = $_POST['zipcode'];
$phone = $_POST['phone'];
$email = $_POST['email'];
$description = $_POST['description'];
//The above define your variables sent from your "form.php" file
$fp = fopen("$/quotes.txt", "a");
$outputstring = "$date.\n\r\r. Name .$name.\n\r\r Title $title.\n\r\r Company $company.\n\r\r Address $address.\n\r\r City, State $location.\n\r\r Phone $phone.\n\r\r Phone $phone.\n\r\r Email $email.\n\r\r Text $description.\n\r\r";
fwrite($fp, $outputstring);
fclose($fp);
?>Code: Select all
<?
echo "<p>form processed.";
?>Code: Select all
$fp = fopen("$/quotes.txt", "a");Code: Select all
$fp = fopen("quotes.txt", "a");