Click to See Complete Forum and Search --> : Forms and links
Eidur
03-12-2003, 03:27 PM
Sorry, I'm really new to HTML, but I've 2 problems.
Firstly, is it possible to create a form that when you press submit, it sends an email automatically to my email address?
Secondly, (really easy) how do I make links without underlining? Once again, sorry for being a newbie :)
khalidali63
03-12-2003, 04:10 PM
<form name="formName" action="emailto:yourEmail@email.com" method="post" enctype="text/plain">
The above wil submit the form to email address provided
<a href="somelink.com" style="text-decoration:none">Link</>
Will take care of the underline( see the style attribute)
Cheers
Khalid
nkaisare
03-12-2003, 06:00 PM
Originally posted by khalidali63
<form name="formName" action="emailto:yourEmail@email.com" method="post" enctype="text/plain">
action="mailto:yourEmail@email.com"
This will open email client on the visitors machine, but will not mail the form to you. You need to use server-side method (CGI/ASP/PHP etc) to mail the form directly.
Eidur
03-13-2003, 01:12 AM
Is that hard to set up?
Originally posted by nkaisare
This will open email client on the visitors machine, but will not mail the form to you.Actually, it will. It will alert the users that their is a program trying to send email, and if they hit yes to allow it to do so, it will send the email...
If you don't know any server side language, you may want to look for a free script on either http://php.resourceindex.com or http://cgi.resourceindex.com
Eidur
03-13-2003, 01:08 PM
I don't really know what I'm looking for sorry :(
Do I need access to a server for this then?
Yes, you will need to have access to a server. Do you have one?
Eidur
03-13-2003, 01:32 PM
I'm not sure, I've got FTP and SSH I think...
When you FTP in to your site, do you see a directory called cgi-bin?
To check for PHP, make a file called test.php with this in it:
<?PHP
echo ("I have PHP!");
?>and check what it returns...
Eidur
03-13-2003, 03:38 PM
Is that just open note pad, put in
<?PHP
echo ("I have PHP!");
?>
And save as "test.php" then upload then go to cgi-bin then upload, then go to domain.com/test.php
??
Don't put it in your cgi-bin, just upload it to your main directory...
lomfs24
03-13-2003, 11:39 PM
Here is another quick little php script that will let you know if you have php capablities but also all the information you will need to know about your server once you start developing php scripts in your site.
<?php
phpinfo()
?>
Save those three lines to a file called test.php or phpinfo.php or whatever.php. Upload it to your server and then point your browser to it.
Eidur
03-14-2003, 02:00 AM
ok, good I get this
http://www.duncanbell.net/phpinfo.php
What do I do next?
Go to http://php.resourceindex.com/Complete_Scripts/Form_Processing/ and download one of the free form handlers, or, start learning PHP so you can write you own.
lomfs24
03-14-2003, 09:38 AM
Another place that has a lot of php scripts is www.hotscripts.com. This has helped me out a lot.
The two books that have helped me a lot are "PHP and MySQL Web Development" by SAMS and the "PHP Cookbook" by O'Reilly. I have also used the SAMS "Teach Yourself PHP, MySQL and Apache in 24 Hours"
Those three books should help you out and get you started.