#1 2007-03-11 15:05:40

Carey
New member
Ranking
Registered: 2007-03-11
Posts: 1
Expertise

text box

Alright, I want a text box that users can type stuff into and submit it to my email.  this is what i made.

Code::

<!-- start: nav -->

<div class="navigation">
<!-- start: nav_bit_active -->
<span class="active">Think-Wii</span>

<!-- end: nav_bit_active -->
</div>
<!-- end: nav -->
            <br class="clear" />
<!-- end: header -->
    
<script type='text/javascript'>
function changeDesc(job)
{
document.getElementById('desc').innerHTML=job;
}
</script>
<table border="0" cellspacing="1" cellpadding="4" class="tborder" style="clear: both;">
        <tr>
            <td class="thead"><strong>Contact Us</strong></td>
        </tr>

        <tr>
            <td class="trow1"><br />
<form action='' method='post'>
Subject: <select name='Subject' ' id='Subject'>
<option value=' Affiliate' onmousedown='changeDesc(" Add our button on your site.")'> Affiliate</option><option value=' Site Bugs' onmousedown='changeDesc(" Report a bug found on the site.")'> Site Bugs</option><option value=' General' onmousedown='changeDesc(" General questions or Comments.")'> General</option><option value=' Other...' onmousedown='changeDesc(" Other...")'> Other...</option></select><br/>

 <span style='font-weight:bold' id='desc'></span><br/><br/>
<p>Input Text<br/>
<textarea cols='50' rows='5' name='desc'></textarea></p><br/>
<input type='submit' value='Submit Form'/></form>

</td>
        </tr></table></html>

The problem is I get this when I submit.

Method Not Allowed
The requested method POST is not allowed for the URL /contact.htm

is there something wrong with the code?

Offline

 

#2 2007-03-11 22:29:26

rezaul
New member
Ranking
Registered: 2007-02-03
Posts: 8
Expertise

Re: text box

HI

I think there is a mistake in your code <form action='' method='post'> line.

you need to add name of script such as "xyz.php" or "xyz.html" , where your Processing code are included.

therefore your code will be like that

<form action='xyz.php' method='post'>
you can also use GET method here.

I think this will be help you.

Thanks

Offline

 

Board footer

OPML feedsRSS feeds



Powered by WWWThreads Forum
© Copyright 2006, WWWThreads