[thelist] Form/ Submit Problem

Keith Gaughan keith at digital-crew.com
Tue Jul 26 14:31:25 CDT 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Epting, Marcus (N-Consultant) wrote:

> Please tell me what is wrong wit this code? When I click  the Go button
> I get a page cannot be displayed error message. I would like to see a
> page that says Mail has been sent. This page has already been created
> but when I try to use the <a href="" >   attribute I get nothing. Please
> help! I think the problem lies somewhere in bold.

I can't see what you mean. You'd some invalid attributes, and invalid
or depricated tags. I got rid of the font tags--they were just
cluttering things up--and reformatted the markup to make it readable.
You were also missing types on the input fields.

Any other notes I've left in comments below:

<style type="text/css">
body
{
    font-family:    Tahoma, Verdana, sans-serif;
}

h2
{
    color:          #006;
    text-align:     center;
    font-size:      100%;
}

td, th
{
    text-align:     left;
    vertical-align: top;
}

</style>

<h2>Tell a friend about this site.</h2>

<!-- You had a stray ?id= here, and a table embedded in a table. -->
<form method="post" action="tellafriend.html">
<table border="0" cellpadding="1" cellspacing="1" align="center">
    <tr bgcolor="#E0EBE0">
        <td>* Your Name</td>
        <!-- You'd no types on the input fields. -->
        <td><input type="text" size="25" name="Custname" value=""></td>
    </tr>

    <tr bgcolor="#E0EBE0">
        <td>* Your Email</td>
        <td><input type="text" size="25" name="Custemail" value=""></td>
    </tr>

    <tr bgcolor="#E0EBE0">
        <td>* Friend's Name</td>
        <td><input type="text" size="25" name="Friendsname" value=""></td>
    </tr>

    <tr bgcolor="#E0EBE0">
        <td>* Friend's Email</td>
        <td><input type="text" size="25" name="Friendsemail" value=""></td>
    </tr>

    <tr bgcolor="#E0EBE0">
        <td>Your Message</td>
        <td><textarea cols="25" rows="6" name="strMessage">Please check
out this site</textarea></td>
    </tr>
</table>

<div align="center"><input type="image" src="go.gif" title="Continue"></div>
</form>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFC5o+NmSWF0pzlQ04RAsuQAJ0Q9V7787ykw5v3af3we6oms7UwlgCg2Qgd
AjX40hewgqAK5OMdfswZ1I4=
=BID/
-----END PGP SIGNATURE-----


More information about the thelist mailing list