This is a discussion on "form help" within the Web Page Design section. This forum, and the thread "form help are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
form help
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
form help
hey there, got a problem with a form, it aall works, but in the email i receive from feedback, the form details are in a line one after the other, any chance i can make line by line in the email, i.e.
First name john: Last Name: smith feedback: need help etc cheers skyfire |
|
|
|
#2
|
||||
|
||||
|
Re: form help
Hi skyfire,
are you using php to send the form?? If so you'll need the "\n" to put the next field on a new line. Put your code in a reply but make sure you use the <code> tags, and then we can get to the bottom of the problem! Craig |
|
#3
|
|||
|
|||
|
Re: form help
Oh sorry Craig, I just saw the post when I submitted exactly the same answer
|
|
#4
|
|||
|
|||
|
Re: form help
i am using html and css, ive pasted the code below:
Last edited by herkalees; Mar 5th, 2006 at 20:05. |
|
#5
|
|||
|
|||
|
Re: form help
Quote:
|
|
#6
|
||||
|
||||
|
Re: form help
OK, you need to make one change to your html page,
Get rid of this
Copy and paste the code below, I have changed the script so it uses the fieldnames you use already, however the things i have put in capitals you need to change. Save this as feedback.php and simply upload it to your server as you would your new html file.
Craig |
|
#7
|
|||
|
|||
|
Re: form help
Okay, I was just being lazy, that will work, great!
|
|
#8
|
||||
|
||||
|
Re: form help
Can we see the site?
|
|
#9
|
|||
|
|||
|
Re: form help
so when i make these changes, a file will be emailed to me with the feedback details in it yeah?
but the thing is at the , form method"post" action: part is that there is just an email adres in there, dont know why this page displayed, private.php etc Last edited by skyfire400; Mar 2nd, 2006 at 21:19. |
|
#10
|
|||
|
|||
|
Re: form help
I don't understand that, then why was it in the code? Do you use Dreamweaver or some other editor like DW? Where was it displayed? In the code section?
Anyway, that's not so important, the script provided by craig should work, so why work with the old one? Can we see the site when it's ready, please? |
|
#11
|
|||
|
|||
|
Re: form help
in the part craig said the change, the part in capitals, which url for where the form is? and do i put that stuff he said to add in to a sperate file called feedback.php? thats waht im thinkin anyway,
the site is still in deep works, but if you go to www.heavenlybaskets.co.uk/contact.htm just go to view source, and see if that is of any help to u Last edited by skyfire400; Mar 2nd, 2006 at 21:35. |
|
#12
|
|||
|
|||
|
Re: form help
this is the full code for the page:
Last edited by herkalees; Mar 5th, 2006 at 20:05. |
|
#13
|
|||
|
|||
|
Re: form help
where it says:
<form method="post" action="private.php?do=newpm&u=3275"> there is an email address where its says "private.php |
|
#14
|
||||
|
||||
|
Re: form help
I dont understand why you have not used the code I gave you. It works fine, and means your email isnt in viewable code which means you wont get loads of spam. The mailto function in a html page is a bad choice for security reasons.
The URL your form is at is : http://www.heavenlybaskets.co.uk/contact.htm so this should replace the words in CAPS. The form does work. CRaig |
|
#15
|
||||
|
||||
|
Re: form help
I edited your posts. Please use code tags, they are like this, minus the spaces:
[ CODE ] all your content [/ CODE ] |
|
#16
|
|||
|
|||
|
Re: form help
the form didnt work craig, dont know why, but the webstie isnt writtn with PHP, sorry for the problems.
|
|
#17
|
||||
|
||||
|
Re: form help
you can easily change this in a htaccess file.
If you havn't a htaccess file, create a file in Notepad called htaccess.txt and copy and paste the code. Upload it and then in your FTP change the filename from "htaccess.txt" to just "htaccess" without the .txt Then your htm pages will parse like PHP pages and the form script will work!! Craig |