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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
'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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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.
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.
Maybe you missed something. Send me a link to the form.
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
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.
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.
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.
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.
Thanks again.