/    Sign up×
Community /Pin to ProfileBookmark

fwrite() to multiple documents

Here’s my situation:

I am working on a site that is going to be flash-based. However the client wants the ability to edit the content on the pages without using Flash. So, I did some research and found out that it IS possible. Huh.

Either way. I have it setup right now where the client has a textarea that he then types in the message. The message is then “fwritten” to a html document when then the flash reads from.

Anywho, what I want to do is have a textfield for Date (which can otherwise be added with PHP), Author, Title, Message. I also want to use CSS Styling, but I can settle for styling in Flash.

Basically I onl need to know how to fwrite() the Author, Date, Title, and Message all to the same html document.

Thanks everyone.

to post a comment
PHP

1 Comments(s)

Copy linkTweet thisAlerts:
@Kyleva2204Jun 22.2008 — just make a string, housing all the PHP $_POST information like so:

[code=php]
$string = <<<END
Author: $_POST[author]
Date: $_POST[date]
Title: $_POST[title]
Message:
$_POST[message]
END;
[/code]

Then fwrite the variable $string to your HTML document. You can apply your HTML styling inside of the $string variable.

I hope this helps
×

Success!

Help @Design-is-BS spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.5,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...