PDA

View Full Version : Problem with Dual Forms on one page


leecoursey
12-17-2002, 11:43 PM
The first is a simple send to javascript dropdown naviagtion. You pick the state and it jumps you to the associated page - it works fine. Here's a sample:


<form name="form1">
<select name="select2" onChange="MM_jumpMenu('parent',this,1)">

<option value="#'">Choose your State...</option>
<option value=""></option>
<option value="states/alabama.html">Alabama</option>
<option value="states/alaska.html">Alaska</option>
<option value="states/arizona.html">Arizona</option>
<option value="states/arkansas.html">Arkansas</option>


The second one follows. It returns Error: Bad/No Recipient and some error catcher the admin installed says Attempt to send to "webmaster@theedgepc.net subject"

After conferring with the admin of the server he assures me that he has added the appropriate domains to the delimiter list for the formmail script.


<form NAME="signup" ACTION="http://www.caro.net/cgi-bin/formmail.pl" METHOD="post" ENCTYPE="application/x-www-form-urlencoded">
<input name="recipient" type="hidden" value="webmaster@theedgepc.net">
<input type="hidden" name="subject" value="New client from theedgepc.net">
<input type="hidden" name="required" value="phone,firstname,lastname">

<br>
<br>First Name: &nbsp;<input NAME="firstname" SIZE="30" MAXLENGTH="50"><br>
Last Name: &nbsp;<input NAME="lastname" SIZE="30" MAXLENGTH="50"><br>
<br>&nbsp;
<table>
<tr>

<td colspan="2"><b>Home Address:</b></td>
</tr>

<tr>
<td align="right">Street:</td>

<td><input NAME="street" size="30"></td>
</tr>

<tr>
<td align="right">City:&nbsp;</td>

<td><input NAME="city" size="30"></td>
</tr>

<tr>
<td align="right">State:</td>

<td><input NAME="state" size="30"></td>
</tr>

<tr>
<td align="right">Zip Code:</td>

<td><input NAME="zip" size="30"></td>
</tr>

<tr>
<td align="right">Phone Number:</td>

<td><input NAME="phone" size="30"></td>
</tr>
</table><br>

<p>
<hr>
<p>Please review your information carefully. If it
is all correct, you may send it by pressing the Send button:
<input type=hidden name="redirect" value="http://www.theedgepc.net">


<p><input TYPE="submit" VALUE="Send Information"><input TYPE="reset" VALUE="Clear Form">
<p><font color="#993366">Thank you!</font>
<br></form>



If you see the problem please let me know.

intricate
01-01-2004, 07:15 AM
Who writes all these things?

HRick
01-03-2004, 04:27 PM
Well, for starters, lets look at your declarations. Even though this is not PHP where you have ato declare and call a lot of varrabiles, you should keep it in mind for the few times in HTML that you have to do so.

in:

<form NAME="signup" ACTION="http://www.caro.net/cgi-bin/formmail.pl" METHOD="post" ENCTYPE="application/x-www-form-urlencoded">
<input name="recipient" type="hidden" value="webmaster@theedgepc.net">
<input type="hidden" name="subject" value="New client from theedgepc.net">
<input type="hidden" name="required" value="phone,firstname,lastname">

for your "name" decelaration, you have "subject." In the error, you see where this subject opos up, right at the end. It is actually trying to delivet the message to that email string with "subject" in it. As you know, that is not a valid email string.

You should look on the internet for usage of Subject Line tag where you can process email subject lines.

ps... you can do it better using php...