SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Zealot rufman's Avatar
    Join Date
    Mar 2009
    Posts
    163
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Will PHP work on my site?

    Hello all.

    I just have a quick question about PHP and if can do what I need.

    I make custom fortune cookies and sell them over the net. I want to add a function on my site that will allow my customers to type in what they want their message to say and be able to view it real time.

    Will PHP work for this? If so, do you know of any tutoritals that can help me get started??
    BE YOUR OWN CONFUCIUS!
    fortune cookies
    fortune cookie

  2. #2
    SitePoint Addict CWebguy's Avatar
    Join Date
    Mar 2009
    Posts
    247
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If you want it to be real time you might need AJAX or Javascript

  3. #3
    SitePoint Zealot rufman's Avatar
    Join Date
    Mar 2009
    Posts
    163
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    how complex is this? Are there some tutorials you would suggest?
    BE YOUR OWN CONFUCIUS!
    fortune cookies
    fortune cookie

  4. #4
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,185
    Mentioned
    191 Post(s)
    Tagged
    2 Thread(s)
    If you're not talking about simply echoing back the text they enter, but showing it in an image (i.e. in a fortune cookie), you could try using PHP's GD functions to include the text in a dynamically created image.

    If by "real time" you mean as they type without requiring that they enter a form submit, then they will need to have javascript enabled so you can send the text using AJAX.

    IMHO, not extremely complex to do, but not exactly newbie level either.

    I suggest you try a few GD tutorials and then a few AJAX tutorials before you try merging the 2 together. AFAIK the PHP documentation has some simple examples of both which may be enough for you to "get it".


Bookmarks

Posting Permissions

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