www.webdeveloper.com
Results 1 to 15 of 15

Thread: Forms and links

  1. #1
    Join Date
    Mar 2003
    Posts
    6

    Smile Forms and links

    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

  2. #2
    Join Date
    Dec 2002
    Location
    Calgary, Canada
    Posts
    2,653
    <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

  3. #3
    Join Date
    Jan 2003
    Location
    Atlanta, GA
    Posts
    571
    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.

  4. #4
    Join Date
    Mar 2003
    Posts
    6
    Is that hard to set up?

  5. #5
    Join Date
    Dec 2002
    Location
    High on life
    Posts
    10,104
    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
    Last edited by pyro; 03-13-2003 at 09:08 AM.

  6. #6
    Join Date
    Mar 2003
    Posts
    6
    I don't really know what I'm looking for sorry

    Do I need access to a server for this then?

  7. #7
    Join Date
    Dec 2002
    Location
    High on life
    Posts
    10,104
    Yes, you will need to have access to a server. Do you have one?

  8. #8
    Join Date
    Mar 2003
    Posts
    6
    I'm not sure, I've got FTP and SSH I think...

  9. #9
    Join Date
    Dec 2002
    Location
    High on life
    Posts
    10,104
    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 Code:
    <?PHP
    echo ("I have PHP!");
    ?>
    and check what it returns...

  10. #10
    Join Date
    Mar 2003
    Posts
    6
    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

    ??

  11. #11
    Join Date
    Dec 2002
    Location
    High on life
    Posts
    10,104
    Don't put it in your cgi-bin, just upload it to your main directory...

  12. #12
    Join Date
    Dec 2002
    Location
    Montana
    Posts
    24
    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 Code:
    <?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.

  13. #13
    Join Date
    Mar 2003
    Posts
    6
    ok, good I get this
    http://www.duncanbell.net/phpinfo.php

    What do I do next?

  14. #14
    Join Date
    Dec 2002
    Location
    High on life
    Posts
    10,104
    Go to http://php.resourceindex.com/Complet...rm_Processing/ and download one of the free form handlers, or, start learning PHP so you can write you own.

  15. #15
    Join Date
    Dec 2002
    Location
    Montana
    Posts
    24

    Yep

    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles