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 7 of 7
  1. #1
    New Coder
    Join Date
    Oct 2004
    Posts
    32
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Making my page respond to submit forms?

    Ok, i havent started this yet, but there is something i would liek to do and just need some basic ideas. My idea is to just post comments on pictures and display them on the webpage. I dont know how to go about it exactly, but i am thinking of some sort of form. I dont know if something like this involves javascript, and if it does, then i should redirect this question to that thread.

    This is how i want the page to respond. There is a daily picture on the page and at the bottom of the picture, there is a comment form. The idea is to type in the comment, submit it, and then the webpage displays the comment underneath the picture. And i want it to be able to comment as many times as possible, always displaying the comments underneath the picture.

    How would i go about this? Your help is appreciated

    ~Jeff

  • #2
    Senior Coder
    Join Date
    Aug 2002
    Location
    Kansas City, Kansas
    Posts
    1,518
    Thanks
    0
    Thanked 2 Times in 2 Posts
    You need to use a serverside language, such as php to accomplish this. You could probably find a script for this somewhere on the net. Check http://www.hotscripts.com/ and especially http://www.google.com.

  • #3
    New Coder
    Join Date
    Oct 2004
    Posts
    32
    Thanks
    0
    Thanked 0 Times in 0 Posts
    now do i have to download php software and install it to the server or just download the script and install it? utterly confused

  • #4
    Senior Coder
    Join Date
    Aug 2002
    Location
    Kansas City, Kansas
    Posts
    1,518
    Thanks
    0
    Thanked 2 Times in 2 Posts
    If you don't own the server, I don't think that you can install php on it. You will have to check with the company, but they might already support it. Otherwise, you'll have to find a new host or use a server-side language that they do support, if others are available.

  • #5
    New Coder
    Join Date
    Sep 2004
    Posts
    25
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I think the easiest thing to do would be to post the picture on the top and just have an input form on the bottom. The picture(s) would be totally seperate of the form, that way you don't need to involve it with the PHP.

    What you can do is look up guestbooks and post that as the input form and just have the picture at the top. Essentially thats all youre trying to do anyways, so...

    I'll give a link later. I can't get to it because of the filter on this computer, so check back later.

    Rob

  • #6
    Senior Coder
    Join Date
    Feb 2003
    Location
    Ontario, Canada
    Posts
    1,223
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Safe bet your host supports Perl though. Even free hosts tend to support Perl. Check out hotscripts.com for something like this written in Perl, maybe?

  • #7
    WA
    WA is offline
    Administrator
    Join Date
    Mar 2002
    Posts
    2,596
    Thanks
    2
    Thanked 19 Times in 18 Posts
    Also see here for some good CGI based form submission scripts: http://cgi.resourceindex.com/Program...rm_Processing/
    - George
    - JavaScript Kit- JavaScript tutorials and 400+ scripts!
    - JavaScript Reference- JavaScript reference you can relate to.


  •  

    Posting Permissions

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