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 5 of 5
  1. #1
    New Coder
    Join Date
    Aug 2002
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Form submission via email problem

    I have a html form, with textarea's, which calls my php to submit the form through email. I have the rows set at 5 and although you can enter more text than 5 rows, it will not submit the form to email unless the textarea's contain 5 or less rows of text. I do not want to display more than 5 rows on my form, but I want the user to be able to submit more than 5 rows.

    This is an example of my text area code

    <textarea name="question9" cols="50" rows="5" class="normaltext">

    Here is my PHP code:

    <?phpmail("xxx@xxx.com", "Request for Report", "User Name:\n$requiredname\n\nE-mail address:\n$email\n\nPhone Number:\n$requiredphone\n\nDate Needed By:\n$requireddateneeded\n\nScreen this information usually found / names of the tables used:\n$question1\n\nInformation to include on the report / order:\n$question2\n\nSort order:\n$question3\n\nSub-totals / what level(s):\n$question4\n\nFilters:\n$question5\n\nPrompts / default values:\n$question6\n\nName of similar report already out there:\n$question8\n\nTesting parameters and expected results:\n$question9\n\nAdditional Comments:\n$question10\n\n", "From: $email\r\n"."Reply-To: $email");?>

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Location
    UK
    Posts
    577
    Thanks
    0
    Thanked 0 Times in 0 Posts
    what is your forms method?

    Neither the mail() function, nor the textarea would place a restriction on how many lines could go through, so I surmise the problem lies elsewhere.

    If you are using method="get" then that's the problem - use "post"
    Ökii - formerly pootergeist
    teckis - take your time and it'll save you time.

  • #3
    New Coder
    Join Date
    Aug 2002
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts
    That did the trick. I didn't even have a method defined. Thank you for your help, I've been beating my head with this for a while!

  • #4
    Regular Coder
    Join Date
    Jun 2002
    Location
    UK
    Posts
    577
    Thanks
    0
    Thanked 0 Times in 0 Posts
    for your information:

    get method: restricts passed data to 256 bytes due to using the URL as a medium for passing the information

    post method: no restrictions.
    Ökii - formerly pootergeist
    teckis - take your time and it'll save you time.

  • #5
    New Coder
    Join Date
    Aug 2002
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile

    You learn something new everyday. Thanks for the information!


  •  

    Posting Permissions

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