Forms and links

liunx

Guest
Sorry, I'm really new to HTML, but I've 2 problems.<br />
<br />
Firstly, is it possible to create a form that when you press submit, it sends an email automatically to my email address?<br />
<br />
Secondly, (really easy) how do I make links without underlining? Once again, sorry for being a newbie :)<!--content--><form name="formName" action="emailto:[email protected]" method="post" enctype="text/plain"><br />
<br />
The above wil submit the form to email address provided<br />
<br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"somelink.com" style="text-decoration:none">Link</><br />
<br />
Will take care of the underline( see the style attribute)<br />
<br />
Cheers<br />
<br />
Khalid<!--content-->Originally posted by khalidali63 <br />
<form name="formName" action="emailto:[email protected]" method="post" enctype="text/plain"> <br />
action="mailto:[email protected]"<br />
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.<!--content-->Is that hard to set up?<!--content-->Originally posted by nkaisare<br />
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...<br />
<br />
If you don't know any server side language, you may want to look for a free script on either <!-- m --><a class="postlink" href="http://php.resourceindex.com">http://php.resourceindex.com</a><!-- m --> or <!-- m --><a class="postlink" href="http://cgi.resourceindex.com">http://cgi.resourceindex.com</a><!-- m --><!--content-->I don't really know what I'm looking for sorry :(<br />
<br />
Do I need access to a server for this then?<!--content-->Yes, you will need to have access to a server. Do you have one?<!--content-->I'm not sure, I've got FTP and SSH I think...<!--content-->When you FTP in to your site, do you see a directory called cgi-bin?<br />
<br />
To check for PHP, make a file called test.php with this in it:<br />
<br />
<?PHP<br />
echo ("I have PHP!");<br />
?>and check what it returns...<!--content-->Is that just open note pad, put in<br />
<br />
<?PHP<br />
echo ("I have PHP!");<br />
?><br />
<br />
And save as "test.php" then upload then go to cgi-bin then upload, then go to domain.com/test.php<br />
<br />
??<!--content-->Don't put it in your cgi-bin, just upload it to your main directory...<!--content-->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. <br />
<br />
<?php<br />
phpinfo()<br />
?> <br />
<br />
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.<!--content-->ok, good I get this <br />
<!-- m --><a class="postlink" href="http://www.duncanbell.net/phpinfo.php">http://www.duncanbell.net/phpinfo.php</a><!-- m --> <br />
<br />
What do I do next?<!--content-->Go to <!-- m --><a class="postlink" href="http://php.resourceindex.com/Complete_Scripts/Form_Processing/">http://php.resourceindex.com/Complete_S ... rocessing/</a><!-- m --> and Download <!--more--> one of the free form handlers, or, start learning PHP so you can write you own.<!--content-->Another place that has a lot of php scripts is <!-- w --><a class="postlink" href="http://www.hotscripts.com">www.hotscripts.com</a><!-- w -->. This has helped me out a lot. <br />
<br />
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"<br />
<br />
Those three books should help you out and get you started.<!--content-->
 
Back
Top