What programming language would be able to do this?

Discussion in 'Programming' started by maney, Nov 12, 2006.

  1. #1
    I'm looking to add a little field onto my index page with a little send button next to it, The user can put some text in that field (only a small ammount, a max of 100 characters or so) and when they hit a send button the text is emailed to an adress of my choice. I want to use it so I can get feedback from my users to find out what they would like to see.

    What language would be able to do this?
     
    maney, Nov 12, 2006 IP
  2. Richie_Ni

    Richie_Ni Illustrious Member

    Messages:
    10,721
    Likes Received:
    1,175
    Best Answers:
    0
    Trophy Points:
    410
    #2
    PHP...It's likely a contact page as you said.
     
    Richie_Ni, Nov 12, 2006 IP
  3. abixalmon

    abixalmon Well-Known Member

    Messages:
    378
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    120
    #3
    PHP is best for your need!!!
    Sample Code:

     
    abixalmon, Nov 12, 2006 IP
  4. PinotNoir

    PinotNoir Peon

    Messages:
    505
    Likes Received:
    40
    Best Answers:
    0
    Trophy Points:
    0
    #4
    PHP or Flash and PHP or AJAX and PHP
    ASP or Flash and ASP, etc
     
    PinotNoir, Nov 12, 2006 IP
  5. daboss

    daboss Guest

    Messages:
    2,249
    Likes Received:
    151
    Best Answers:
    0
    Trophy Points:
    0
    #5
    best done with a html form that calls a php file (in the action field of the form).

    1. the max length will be defined in the form input field definition itself
    2. you can also add some javascript for any additional field validation
     
    daboss, Nov 12, 2006 IP
  6. PayItForward

    PayItForward Peon

    Messages:
    752
    Likes Received:
    43
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Now spammers can use his contact form to send out spam and then he will lose his hosting account.

    I'm willing to bet you could be held liable for your unsecure code ;)
     
    PayItForward, Nov 13, 2006 IP
  7. phree_radical

    phree_radical Peon

    Messages:
    563
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #7
    But the recipient's address is hard-coded..?:
     
    phree_radical, Nov 13, 2006 IP
  8. Nick_Mayhem

    Nick_Mayhem Notable Member

    Messages:
    3,486
    Likes Received:
    338
    Best Answers:
    0
    Trophy Points:
    290
    #8
    PHP. I was going to tell this no matter what the question would have been. Bcoz on the web platform most of the things are acheiveable by PHP.
     
    Nick_Mayhem, Nov 13, 2006 IP
  9. vid

    vid Peon

    Messages:
    209
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    And by JSP, and by ASP..:)

    Actually you can use any scripting language which you know ;)
     
    vid, Nov 13, 2006 IP
  10. livingearth

    livingearth Well-Known Member

    Messages:
    1,469
    Likes Received:
    83
    Best Answers:
    0
    Trophy Points:
    140
    #10
    A method refered to as sql injection can be used to add new fields to the form including an extra email address. As well as run code on your server. Code needs to be sanitized/parsed to prevent the use of illegal characters..
     
    livingearth, Nov 13, 2006 IP
  11. master06

    master06 Peon

    Messages:
    2,806
    Likes Received:
    121
    Best Answers:
    0
    Trophy Points:
    0
    #11
    php is best opinion for this. Fast and easy use.

    Regards,
    Mustafa
     
    master06, Nov 16, 2006 IP