GetDotted Domains

Viewing Thread:
"Help with HTML please..."

The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.

Wed 17/03/04 at 13:57
Regular
"Plain Misunderstood"
Posts: 428
I'm not HTML savvy, but I have to code a basic website for my GNVQ IT project.

I want to do a contact/queries form and currently have the following code:
(PS. This is only an example!)


Form Test Page

I'm quite bored so I need to know how drunk you are.



Please enter your name.

How drunk are you?


Choose one of the following options:


Pisshead
Someone else









Can someone tell me how to send the results of the query to a specified text file rather than an e-mail address?
Thu 18/03/04 at 12:55
Regular
"Plain Misunderstood"
Posts: 428
Cheers for the help!!

I don't know how to use PHP, but you've given me pointers in the right direction!
Wed 17/03/04 at 15:02
Regular
"Chavez, just hush.."
Posts: 11,080
If you use PHP, just use a script like this to write to a file.

if ($Data) {
$Data = stripslashes($Data);
$File = "main.txt";
if (file_exists($File)) {
$fp = fopen($File, "w");
flock($fp, 2); # Lock the File.
fputs($fp, "$Data\n");
flock($fp, 3); # Release the File Lock.
fclose($fp);
print "

Thanks for adding your input

\n";
} else{
print "

ERROR: Could not locate the required file.

\n";
}
} else {
print "

No Data entered

\n";
}
?>

Thank cjh for that.
Wed 17/03/04 at 14:21
Regular
Posts: 10,437
Yeah, I think you'll need to use a CGI script to do something like that, I'm not aware of anyway to do that with basic HTML.
Wed 17/03/04 at 14:19
Regular
"Plain Misunderstood"
Posts: 428
At the moment it will send to an email address when you click submit, I want it to send the info to a text file rather than an e-mail address if at all possible...
Wed 17/03/04 at 14:11
Regular
Posts: 10,437
I think you may need to use a Perl/PHP file to get the input and save it to file, then put the pathname of that file in the action attribute, although it's unclear exactly what you want to do.
Wed 17/03/04 at 13:57
Regular
"Plain Misunderstood"
Posts: 428
I'm not HTML savvy, but I have to code a basic website for my GNVQ IT project.

I want to do a contact/queries form and currently have the following code:
(PS. This is only an example!)


Form Test Page

I'm quite bored so I need to know how drunk you are.



Please enter your name.

How drunk are you?


Choose one of the following options:


Pisshead
Someone else









Can someone tell me how to send the results of the query to a specified text file rather than an e-mail address?

Freeola & GetDotted are rated 5 Stars

Check out some of our customer reviews below:

Top-notch internet service
Excellent internet service and customer service. Top-notch in replying to my comments.
Duncan
Best Provider
The best provider I know of, never a problem, recommend highly
Paul

View More Reviews

Need some help? Give us a call on 01376 55 60 60

Go to Support Centre

It appears you are using an old browser, as such, some parts of the Freeola and Getdotted site will not work as intended. Using the latest version of your browser, or another browser such as Google Chrome, Mozilla Firefox, or Opera will provide a better, safer browsing experience for you.