/    Sign up×
Community /Pin to ProfileBookmark

Unique PHP Form Question

I run a site where we feature interviews. The site is only ran by me, and I have little time now with promo and events coming up that I need to direct my time. Right now I am having people email me their interviews that they have conducted, and then I go in and put the div tags and line breaks and img tags in the copy.

I would love to find a way where I could have a form where someone could enter data, and then when it printed it would include the needed tags for the html copy. I was thinking of having it very lazy and simple, with the div tag and other html language on the actual page, and then right after the needed tag it would have a forum area to type in what you would want. Like this:

<div class=””><br /><br />
[U]Form Area To Type In[/U]<br /><br />

Thus, the user could see the code (which I couldn’t care less about sloppy coding or laziness), and so when the user fills out the completed forms and hits submit, the page will print out the html copy I included, with the form entries.

I am also dealing with images, so I would need an image upload script but I think I do that one – I see them all over the web.

Is this possible? Could I program something where it would allow the user to submit needed data into a form alongside the html tag copy that is needed, and when user is finished they simply hit sumit where it would send it to my email address (this would all be a phpmail function)? I thought most php code wouldn’t allow you to type in random junk that included quotes and other characters, but I believe I could do this with the right person telling me where to look.

Any ideas?

to post a comment
PHP

3 Comments(s)

Copy linkTweet thisAlerts:
@CrucialJul 18.2007 — Have you looked into an online editor such as

http://www.fckeditor.net/

or

http://tinymce.moxiecode.com/
Copy linkTweet thisAlerts:
@1234567890authorJul 19.2007 — I was needing something where I can include needed html tags, so that when the user submits the data, the date conforms to the html copy - this would give me the html tags and the copy the user put in so all I would have to do is simply copy and paste the whole (html)(data entered) into my files for upload.

Are these programs you listed, or others like them, able to add certain fields to conform to an html tag?
Copy linkTweet thisAlerts:
@CrucialJul 19.2007 — using an online editor would allow you to present a form to your user that they can paste their content into and click Submit. You can set default tags as needed (divs, line breaks).

If they paste from Word, you may end up with more html tags than you want.
×

Success!

Help @1234567890 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 6.16,
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: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

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