Jump to content

2 Questions: Using a form to create a HTML file. | phpBBCode file.


DanielWhite

Recommended Posts

First of all I would like to ask if anyone knows how I can use a form to create a PHP file.

 

For example. User inputs text into HTML based form and then clicks submit. The data then gets saved inside a newly created PHP file.

 

Anyone know how to?

 

 

My second question is, does anyone know where I can get a hold of the file for phpBBcode so that I can use BB codes on my php pages. I looked on Google and all the download sites get errors.

 

Thank you,

Daniel White

Umm is it just me or is there lots of the tutorial coding missing of here:

 

http://www.phpfreaks.com/forums/index.php/topic,186690.0.html

 

???

 

 

 

 

UPDATE:

OK here's a tutorial to create files:

http://www.developer.com/lang/php/article.php/1146721

 

However, I am still looking for the phpBBcode file. Could anyone help me? Thank you.

Here's a quick way to create a file:

 

http://www.somecoders.com/2006/06/creating-files-with-php/

<?php
//Create the file mck.php
$handle = fopen('mck.php', 'w+');
//Write some text
fwrite($handle, "Hmm, there's no PHP here!", 25);
//Close the file
fclose($handle);
?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.