Menu

Extract code?

Help
Phil
2007-04-08
2013-06-03
  • Phil

    Phil - 2007-04-08

    I am a beginner but I have successfully created a simple form but the style and layout does not match the layout and style of the rest of my web site.  Can anyone please help me to extract the relevant code from the body of the file created and insert it into my own form?

    Many TIA

     
    • TNTEverett

      TNTEverett - 2007-04-08

      Take everything from the <form> to </form> tags.  Put into your own html file and change any parts you want except the form <input> tags and variable names. 
      It's really just standard html.

       
    • Phil

      Phil - 2007-04-14

      Thanks TNT.  I've done that and it looks and works great.  The file is called "contact.html"  I've also done the same to the "Thank you" page within the "process.php" file, and that looks great too.

      I've also moved the "contact.html", "process.php" and "global.inc.php" files into my public_html folder and all the links work EXCEPT that having filled in the (very simple) form and clicked on the "submit" button, the theoretically generated e-mail never arrives.

      As far as I can see nothing is mis-spelled, so I'm stumped again.

      Any help will be greatly appreciated.

       
      • TNTEverett

        TNTEverett - 2007-04-14

        Maybe you missed something.  Send me a link to the form.

         
      • TNTEverett

        TNTEverett - 2007-04-15

        It looks like you've modified the html file.  Try removing the quotes around the sumbit and reset buttons.
        Change
        <input type="reset"
        to
        <input type=reset

        Change
        <input type="submit"
        to
        <input type=submit

         
      • TNTEverett

        TNTEverett - 2007-04-15

        Looks like there might also be something wrong with the process.php.  If you still can not get it working send the process.php file in an email.

         
      • TNTEverett

        TNTEverett - 2007-04-15

        Just tried the email in your process.php file.  This is what I get.

        Your message did not reach some or all of the intended recipients.

              Subject:    RE: Extract code?
              Sent:    4/15/2007 12:22 PM

        The following recipient(s) could not be reached:

              'youremail' on 4/15/2007 12:22 PM
                    550 [PERMFAIL] destination not valid within DNS

        Please double check the email address in the process.php file.  Let me know if you get it working.  If you think it is correct, try a different one to see if anything changes. 

         
    • Phil

      Phil - 2007-04-15

      Many thanks again.  It was a typo on the e-mail address, which I've corrected and it's all working fine now.

      You didn't comment on the recommended flie access permissions.  I have them set at 777, which seems to me to be too high, but will appreciate your opinion.

      Also, on the form, I have fored the "your name" field to be in upper case, but on the "thank you" screen, it comes out as typed, i.e.can be lower case.  Is there a way to force the thank you screen to show upper case for this field even if lower case is typed in?

      Regards and thanks again.

       
      • TNTEverett

        TNTEverett - 2007-04-15

        I never use 777.  Permission problems usually occur during installation.  If they are taken care of right away you shouldn't need to change them.  Anyway the rule is 644 for any file the people should be able to read, 755 for any files that need to be executed (php files rarely need this). 
        Using 777 leave files and folders open to being deleted by anyone. 

         
    • Phil

      Phil - 2007-04-16

      Thanks again.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.