|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (8 bit)
Join Date: Jun 2003
Location: Malawi
Posts: 203
|
I wanted to ask guys out there i am in kind of fix. I have developed a web page for my friend. He was browsing on a BBC site and found a form whereby you fill a form and click send then an email goes to BBC.
this is the site http://www.sdnp.org.mw/~manga/ pliz advise on where forward. |
|
|
|
|
|
#2 |
|
Member (9 bit)
|
is your server php enabled? and do you have any exp. in php?
|
|
|
|
|
|
#3 |
|
Member (8 bit)
Join Date: Jun 2003
Location: Malawi
Posts: 203
|
i dont have much exp am just starting out in that area. At the moment my friend told me that its simple and i can get it on the net.
About my server being PHP enabled i think it is coz a couple of websites which run on our server have these forms. |
|
|
|
|
|
#4 |
|
Moderator
Staff
Premium Member
Join Date: Aug 2003
Location: Richmond, VA
Posts: 7,835
|
PHP Code:
kram
__________________
"For today, goodbye. For tomorrow, good luck. And forever, Go Blue!"
University of Michigan President Mary Sue Coleman |
|
|
|
|
|
#5 |
|
Member (8 bit)
Join Date: Jun 2003
Location: Malawi
Posts: 203
|
check out the page now but the problem comes when you try to send the mail. I can see the form alrite but i cant send to the addres specified.
|
|
|
|
|
|
#6 |
|
Member (9 bit)
|
This is what i used to use on my site.
index.html PHP Code:
PHP Code:
|
|
|
|
|
|
#7 |
|
Staff
Premium Member
Join Date: Jul 1999
Location: Arlington, TN
Posts: 5,538
|
Your mailto form on your site won't work because you used reset instead of submit. This resets the form. Mailto is a quick and dirty way to do it. Mulderman has given a little better one but you should have some validation of the fields as to whether they are filled in and whether the email address is valid.
Look over at Zend for some more complex scripts.
__________________
Want to Make $$$$ with your Computer? No Risk! Simply press shift-4 four times in a row |
|
|
|
|
|
#8 |
|
Member (8 bit)
Join Date: Jun 2003
Location: Malawi
Posts: 203
|
Mulderman
do i need to edit the first part or the part which needs editing is the one below. And i dont understand how the second part fits. do i just add it below the code for the form. |
|
|
|
|
|
#9 | |
|
Staff
Premium Member
Join Date: Jul 1999
Location: Arlington, TN
Posts: 5,538
|
Quote:
<form method="get" action="contact.php"> It says that the action is to call contact.php page upon submit. This means that you need two pages in this case and would edit the only the second page. This could quite easily all have been done on one page as well but in this example it is 2. |
|
|
|
|
|
|
#10 |
|
Member (8 bit)
Join Date: Jun 2003
Location: Malawi
Posts: 203
|
Marving thanks for the advice it really has helped me a lot. Check the site now and you will see your sweat the man
http://www.sdnp.org.mw/~manga/ |
|
|
|
|
|
#11 | |
|
Staff
Premium Member
Join Date: Jul 1999
Location: Arlington, TN
Posts: 5,538
|
Quote:
|
|
|
|
|
|
|
#12 | |
|
Member (9 bit)
|
Quote:
|
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|