By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,395 Members | 1,882 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,395 IT Pros & Developers. It's quick & easy.

How can I get 2 forms into 1 page?

P: n/a
Tim
I got one form working properly. Then I tried to introduce a second. For a
while, sending information through either form went through just the second.
Then I rearranged some script, and now nothing gets sent at all.

(There's also an email link between the two forms.)

What should be the correct order? Here's the basic code.

<div class="commentform">
<form action="MAILTO:ti********@terrano.es" method="post">
<br>
<span style="color: rgb(0, 0, 0);">name:</span>
<br>
<input style="color: rgb(0, 0, 0);" name="name"
value="" size="40" type="text">
<br>
<span style="color: rgb(0, 0, 0);">e-mail:</span>
<input style="color: rgb(0, 0, 0);" name="mail"
value="" size="40" type="text">
<br>
</form>
<input value="Send" class="formbutton" type="submit">
</div>
<br>
<span
style="font-weight: bold; color: rgb(0, 0, 0); font-family: Arial;">
<br>
text:</span>
<div style="font-family: Arial;" class="content">
<small>
<a
style="font-weight: normal;"
href="mailto:ti********@terrano.es">ti********@ter rano.es</a>
</small>
</div>
<br>
<div class="commentform">
<form action="MAILTO:ti********@terrano.es" method="post">
<div style="color: rgb(0, 0, 0); font-weight: bold;">
text</div>
<span style="color: rgb(0, 0, 0);">name:</span>
<br>
<input style="color: rgb(0, 0, 0);" name="name"
value="" size="40" type="text"><br>
<span style="color: rgb(0, 0, 0);">e-mail:</span>
<br>
<input style="color: rgb(0, 0, 0);" name="mail"
value="" size="40" type="text">
<span style="color: rgb(0, 0, 0);">telephone number:</span>
<br>
<input style="color: rgb(0, 0, 0);" name="name"
value="" size="40" type="text">
<br>
<span style="color: rgb(0, 0, 0);">texto: </span>
<br>
<textarea style="color: rgb(0, 0, 0);" name="body"
class="formfield" cols="60" rows="20"
id="nucleus_cf_body"></textarea<br>
</form>
<input value="Enviar" class="formbutton" type="submit">
</div>

Thanks for any help.

Tim

Mar 27 '07 #1
Share this Question
Share on Google+
5 Replies


P: n/a
Scripsit Tim:
I got one form working properly.
Actually, no.
Then I tried to introduce a second.
For a while, sending information through either form went through
just the second. Then I rearranged some script, and now nothing gets
sent at all.
Not really surprising, when the page is syntactically malformed.
What should be the correct order?
Normally you don't put two forms on one page, but if you do, the other form
must follow the other; they cannot overlap. And any field that should have
an effect on something should appear inside the form to which it belongs.
Here's the basic code.
You should have posted the URL, as usual.
<div class="commentform">
<form action="MAILTO:ti********@terrano.es" method="post">
You can assign styles directly to the form; normally no need for an
enclosing <divelement.

The action="mailto:..." attribute has undefined effect, by the
specifications. It certainly fails to do what you want in _many_ occasions.

Consider whether you need a comment form at all. The odds are that you
don't, at this point.
<br>
<span style="color: rgb(0, 0, 0);">name:</span>
<br>
That looks like the output of some odd page generation program. Get your
money back. A simple feedback form should be written by hand - far easier
than using e.g. a wysiwyg tool and cleaning up the mess.
</form>
Here you close a form.
<input value="Send" class="formbutton" type="submit">
So what does this field relate to? (Answer: nothing.)
<small>
<a
style="font-weight: normal;"
href="mailto:ti********@terrano.es">ti********@ter rano.es</a>
</small>
That's suitable contact information (though <smallserves no useful
purpose). The forms would not add much to it, even if they worked.
</form>
<input value="Enviar" class="formbutton" type="submit">
Here, too, you close the form too early.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

Mar 27 '07 #2

P: n/a
Tim

"Jukka K. Korpela" <jk******@cs.tut.fiwrote in message
news:oT*******************@reader1.news.saunalahti .fi...
Scripsit Tim:
I got one form working properly.

Actually, no.

Actually, yes. The syntax was originally right and the form worked.

>
Then I tried to introduce a second.
For a while, sending information through either form went through
just the second. Then I rearranged some script, and now nothing gets
sent at all.

Not really surprising, when the page is syntactically malformed.
What should be the correct order?

Normally you don't put two forms on one page, but if you do, the other
form
must follow the other; they cannot overlap. And any field that should have
an effect on something should appear inside the form to which it belongs.
Here's the basic code.

You should have posted the URL, as usual.
<div class="commentform">
<form action="MAILTO:ti********@terrano.es" method="post">

You can assign styles directly to the form; normally no need for an
enclosing <divelement.

The action="mailto:..." attribute has undefined effect, by the
specifications. It certainly fails to do what you want in _many_
occasions.
Could you explain this remark, please?

By the way, I've made the modifications to </form>, and the first form
works, but the second form now has a different email address, yet the
message is still being sent to the first address.

What is the correct syntax for two forms sending to 2 different addresses?

Thank you for your help.

Tim
>
Consider whether you need a comment form at all. The odds are that you
don't, at this point.
<br>
<span style="color: rgb(0, 0, 0);">name:</span>
<br>

That looks like the output of some odd page generation program. Get your
money back. A simple feedback form should be written by hand - far easier
than using e.g. a wysiwyg tool and cleaning up the mess.
</form>

Here you close a form.
<input value="Send" class="formbutton" type="submit">

So what does this field relate to? (Answer: nothing.)
<small>
<a
style="font-weight: normal;"
href="mailto:ti********@terrano.es">ti********@ter rano.es</a>
</small>

That's suitable contact information (though <smallserves no useful
purpose). The forms would not add much to it, even if they worked.
</form>
<input value="Enviar" class="formbutton" type="submit">

Here, too, you close the form too early.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/



Mar 27 '07 #3

P: n/a
On 03/27/2007 06:09 PM, Tim wrote:
"Jukka K. Korpela" <jk******@cs.tut.fiwrote in message
news:oT*******************@reader1.news.saunalahti .fi...
>Scripsit Tim:
>>I got one form working properly.
Actually, no.


Actually, yes. The syntax was originally right and the form worked.

Actually, no. It doesn't work on Firefox even when I put the second form
within a comment block.

>>Then I tried to introduce a second.
For a while, sending information through either form went through
just the second. Then I rearranged some script, and now nothing gets
sent at all.
Not really surprising, when the page is syntactically malformed.
>>What should be the correct order?
Normally you don't put two forms on one page, but if you do, the other
form
>must follow the other; they cannot overlap. And any field that should have
an effect on something should appear inside the form to which it belongs.
>>Here's the basic code.
You should have posted the URL, as usual.
>><div class="commentform">
<form action="MAILTO:ti********@terrano.es" method="post">
You can assign styles directly to the form; normally no need for an
enclosing <divelement.

The action="mailto:..." attribute has undefined effect, by the
specifications. It certainly fails to do what you want in _many_
occasions.
Could you explain this remark, please?
Evidently you're writing a web page exclusively for the Microsoft
Internet Explorer because no other web browser would ever attempt to do
anything with a "mailto:..." form action. "Mailto:" as a form action is
undefined outside of MSIE.

By the way, I've made the modifications to </form>, and the first form
works, but the second form now has a different email address, yet the
message is still being sent to the first address.

What is the correct syntax for two forms sending to 2 different addresses?

Thank you for your help.

Tim

[...]
Here is a good place to start learning about HTML:
http://www.w3.org/MarkUp/Guide/

Here is where you find out about the HTML 4.01 standard:
http://www.w3.org/TR/html4/

Here is where you find out about HTML forms:
http://www.w3.org/TR/html4/interact/forms.html

Notice what it says about the "action" attribute to the FORM element.

If you still want to have a form that sends people e-mail, you can
either ask about this in a newsgroup devoted to MSIE, or you can disable
the firewall on your Windows computer*.

---------------
* Just a joke. Please don't do this. :-)
Mar 28 '07 #4

P: n/a
Scripsit Mumia W.:
Evidently you're writing a web page exclusively for the Microsoft
Internet Explorer because no other web browser would ever attempt to
do anything with a "mailto:..." form action. "Mailto:" as a form
action is undefined outside of MSIE.
Not quite so. The use of action="mailto:..." has a long tradition, but it
was never officially endorsed and it was never useful in WWW use. The
formulation in the HTML 4.01 specification isn't an absolute prohibition: it
only says that anything may happen. If you use action="mailto:..." in a
restricted environment, you might make some use of. In the WWW context,
though, it's foolish due to the risks.

For example, on Lynx, I was able to fill out and send the form. But the data
arrives as encoded in a format that Outlook Express cannot handle. I know
how to deal with such issues, on both sides, but I also know that such
things should not be done.

On Firefox 2, I can fill out the form and click Submit, and I get an email
program opened with the recipient address filled - and all my input data
lost.

Depending on environment settings, on any browser, such a form may
completely fail because the browser has not been configured to use an email
program.

It's the complete and possibly unrecoverable loss of user's input that makes
such forms a _very_ bad idea on the WWW.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

Mar 28 '07 #5

P: n/a
Tim

"Mumia W." <pa**************************@earthlink.netwrote in message
news:zI******************@newsread1.news.pas.earth link.net...
On 03/27/2007 06:09 PM, Tim wrote:
"Jukka K. Korpela" <jk******@cs.tut.fiwrote in message
news:oT*******************@reader1.news.saunalahti .fi...
Scripsit Tim:

I got one form working properly.
Actually, no.

Actually, yes. The syntax was originally right and the form worked.

Actually, no. It doesn't work on Firefox even when I put the second form
within a comment block.

>Then I tried to introduce a second.
For a while, sending information through either form went through
just the second. Then I rearranged some script, and now nothing gets
sent at all.
Not really surprising, when the page is syntactically malformed.

What should be the correct order?
Normally you don't put two forms on one page, but if you do, the other
form
must follow the other; they cannot overlap. And any field that should
have
an effect on something should appear inside the form to which it
belongs.
>
Here's the basic code.
You should have posted the URL, as usual.

<div class="commentform">
<form action="MAILTO:ti********@terrano.es" method="post">
You can assign styles directly to the form; normally no need for an
enclosing <divelement.

The action="mailto:..." attribute has undefined effect, by the
specifications. It certainly fails to do what you want in _many_
occasions.
Could you explain this remark, please?

Evidently you're writing a web page exclusively for the Microsoft
Internet Explorer because no other web browser would ever attempt to do
anything with a "mailto:..." form action. "Mailto:" as a form action is
undefined outside of MSIE.

By the way, I've made the modifications to </form>, and the first form
works, but the second form now has a different email address, yet the
message is still being sent to the first address.

What is the correct syntax for two forms sending to 2 different
addresses?

Thank you for your help.

Tim

[...]

Here is a good place to start learning about HTML:
http://www.w3.org/MarkUp/Guide/

Here is where you find out about the HTML 4.01 standard:
http://www.w3.org/TR/html4/

Here is where you find out about HTML forms:
http://www.w3.org/TR/html4/interact/forms.html

Notice what it says about the "action" attribute to the FORM element.
Duly noticed.

I also noticed:

<<Users interact with forms through named controls.

<<A control's "control name" is given by its name attribute. The scope of
the name attribute for a control within a FORM element is the FORM
element.>>

You have *got* to be kidding!

Tim

>
If you still want to have a form that sends people e-mail, you can
either ask about this in a newsgroup devoted to MSIE, or you can disable
the firewall on your Windows computer*.

---------------
* Just a joke. Please don't do this. :-)


Mar 28 '07 #6

This discussion thread is closed

Replies have been disabled for this discussion.