Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 9 of 9
  1. #1
    Regular Coder
    Join Date
    Jan 2010
    Posts
    137
    Thanks
    3
    Thanked 10 Times in 10 Posts

    Mailing and Printing Content

    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!

  • #2
    Senior Coder
    Join Date
    Jul 2009
    Location
    South Yorkshire, England
    Posts
    2,318
    Thanks
    6
    Thanked 304 Times in 303 Posts
    For question one: http://green-beast.com/gbcf-v3/

    Not quite sure what you mean with question two.

  • #3
    Regular Coder dniwebdesign's Avatar
    Join Date
    Dec 2003
    Location
    Carrot River, Saskatchewan
    Posts
    846
    Thanks
    15
    Thanked 10 Times in 10 Posts
    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.
    Dawson Irvine
    CEO - DNI Web Design
    http://www.dniwebdesign.com

  • #4
    Regular Coder
    Join Date
    Jan 2010
    Posts
    137
    Thanks
    3
    Thanked 10 Times in 10 Posts
    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...

  • #5
    Senior Coder
    Join Date
    Jul 2009
    Location
    South Yorkshire, England
    Posts
    2,318
    Thanks
    6
    Thanked 304 Times in 303 Posts
    Quote Originally Posted by jenius View Post
    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

  • #6
    Regular Coder
    Join Date
    Jan 2010
    Posts
    137
    Thanks
    3
    Thanked 10 Times in 10 Posts
    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?

  • #7
    Senior Coder
    Join Date
    Jul 2009
    Location
    South Yorkshire, England
    Posts
    2,318
    Thanks
    6
    Thanked 304 Times in 303 Posts
    No worries. 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.

  • #8
    Regular Coder
    Join Date
    Jan 2010
    Posts
    137
    Thanks
    3
    Thanked 10 Times in 10 Posts
    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?

  • #9
    Senior Coder
    Join Date
    Jul 2009
    Location
    South Yorkshire, England
    Posts
    2,318
    Thanks
    6
    Thanked 304 Times in 303 Posts
    Quote Originally Posted by jenius View Post
    But I guess it will be good for me in the long run, right?
    Yes and no. 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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •