...

View Full Version : Mailing and Printing Content



jenius
02-09-2010, 03:37 AM
Hi everyone -

So let me be straight here in saying that I know almost nothing about PHP. On that note, I pick up things like this very quickly, and don't need to know anything too complex, although I know the language is expansive.

I guess I'm asking for some focused advice here though. As a smaller website designer, the only things I typically need PHP for is to...

1) create a script where form input is emailed to a specified email address, then displays something along the lines of "thank you!", and

2) create a text box where someone can type something in, click a button, and have the content they typed in be printed out somewhere else.

I know both of these are super basic, and I'm practically retarded for not knowing how to do them, but could anyone help me out by giving me an example code or link that would help me along the road to learning how to accomplish these two goals?

Thanks soo much! :D

MattF
02-09-2010, 03:47 AM
For question one: http://green-beast.com/gbcf-v3/

Not quite sure what you mean with question two.

dniwebdesign
02-09-2010, 04:19 AM
You may start out thinking you won't need PHP for anything else, however once you start using it, you won't be able to stop. That's the way I was and that e-mail form data is the same way I got into PHP.

jenius
02-10-2010, 02:40 AM
Thanks for the link, but that wasn't quite what I was looking for - its a wordpress plugin rather than a tutorial.

On the second question, I was wondering how to create a text box that you can type some text into, then have that text saved as a variable and printed or echoed out elsewhere on the page, or on another page. Like for example, if you wanted to make a super simple back end for someone to update the about page of their website or something, have a box for them to type into, then just print $about on your about page (right?) After a bit of research, I think this might involve a tiny bit of SQL as well...

@dniwebdesign, I totally believe that. After not getting much help here I started looking into basic php learning tutorials, and it seems like something I could definitely get into. But it would without a doubt be helpful. I guess I'll have to figure this out myself...

MattF
02-10-2010, 03:50 AM
its a wordpress plugin rather than a tutorial.

It is not a WP plugin. I gave you the link to the standalone version. There's no use reinventing the wheel when a perfectly capable, (and quite well featured), solution already exists. If you really wish to create your own, use it as a foundation for learning from.

Note the defining word, quoted from the above link:



The version two of my form, which is >>>>>>>also<<<<<<< available as a WordPress plugin

jenius
02-10-2010, 04:38 AM
You're right, my bad. I'll look it over, I just feel like as a total noob, I probably won't understand what's going on if I just use someone else who knows what they are talking about's solution. And I really like knowing what's going on... you know what I mean?

MattF
02-10-2010, 04:49 AM
No worries. :D Examining existing code, (both what has been posted on this forum in the past and the code in that form), would probably be the best way to attack it, IMHO. Contact forms can be a dog to do well, ironically, considering that they are such a simple thing in theory. Do a search on here just over the last week or two and the odds are that you'd find at least five people suffering contact form problems.

jenius
02-10-2010, 08:59 AM
I know, it drives me crazy - they are so common and simple seeming so I thought they would be easy and then ran into this massive road block when I realized that they clerly were not - now I have to stop my site development and learn PHP from scratch, what a pain.

But I guess it will be good for me in the long run, right?

MattF
02-10-2010, 01:38 PM
But I guess it will be good for me in the long run, right?

Yes and no. :D It's very useful to know PHP. The amount of life which will pass you by in the process of learning and then once you start needlessly modifying and coding things though can be gutting. :D



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum