PHP errors

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • stealthmode666
    New Member
    • Nov 2008
    • 21

    PHP errors

    I have added spry widget validation to a form which included me having to upload the .css file and a .js file to the server to validate it.
    Now my .php script which worked has thrown a mass of errors.
    All I need now is the script to take the form field information and send it to my email. It doesn't need to do any validation now, only send the information.

    I tried to re-do the script but to no avail.
    Will i need to post the script and errors so hopefully someone can help me work through it as I'm still very new and useless to .php
    Thanks
  • nathj
    Recognized Expert Contributor
    • May 2007
    • 937

    #2
    Originally posted by stealthmode666
    Will i need to post the script and errors so hopefully someone can help me work through it as I'm still very new and useless to .php
    Thanks
    Yes, we're good, but not psychic.

    I recommend the following:
    1. Provide relevant code samples - not all your code
    2. Explain what the code should do
    3. Explain what the code is doing that it should not do
    4. Explain what the code is not doing that it should do

    These will hep people understand what you are after and therefore aid them in helping you solve the problem.

    Check out the posting guidelines if you're unsure and remember to use code tags for all your code, it evens helps a little with the error messages. If the error messages are pointing to specific line number please indicate the line in your code sample.

    Cheers
    nathj

    Comment

    • stealthmode666
      New Member
      • Nov 2008
      • 21

      #3
      Hi again, I notice that the spry has a textfield to identify itself, also the original text field name i gave it is still there, should I be using the original text field name for the .php script to get the information and not the spry textfield name.
      As in will the spry text field use this name to check with the .js script for validation and be nothing to do with the script i use in.php to extract the form field data.
      I'm running through this now to see if this is my problem but if someone knows this already it would be a help

      Comment

      • nathj
        Recognized Expert Contributor
        • May 2007
        • 937

        #4
        I have absolutely no idea. I would need to see the code.

        Reading between the lies of what you are saying it seems that you have a text field named 'fred' for arguments sake, and you are retrieving the data in the php using $_POST['barney'] .

        the name of the text field should be used when getting the data from the $_POST array.

        I hope that helps, but I am working in the dark here. Post your form, particularly the bit with the text field and the code that processes the form. That will give me, and anyone else, a better idea of what is going on.

        Comment

        • stealthmode666
          New Member
          • Nov 2008
          • 21

          #5
          Sorry, I know what your saying, but my thoughts on what I said is what is happening. There are two text field names, one for the spry which uses the spry text name to check the .js script for live server validation and the original text field which I've used in my script to get the data.

          I stupidly used the spry text field name for my .php script which in turn caused the page of errors.
          Hey I'm learning but walking dangerouly by doing it, I need to set-up a testing server this end but struggling even with this at the moment.

          I just uploaded all relevant files and folders and tried it out on one single text field and it worked beautifully from beginning to end.

          I will carry on filling in a few more via the spry validation then come back for help with the .php script i'm using if I need to.

          Comment

          Working...