473,395 Members | 2,446 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

How can I get 2 forms into 1 page?

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
5 4799
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Billy Jacobs | last post by:
I have a website which has both secure and non-secure pages. I want to uses forms authentication. How do I accomplish this? Originally I had my web.config file in the root with Forms...
11
by: ElmoWatson | last post by:
I tried on the Security newgroup, as well as other places, and haven't gotten an answer yet - - I'm pulling my hair out over this one. I'm trying to get Forms Authentication working.....I can get...
3
by: Kris van der Mast | last post by:
Hi, I've created a little site for my sports club. In the root folder there are pages that are viewable by every anonymous user but at a certain subfolder my administration pages should be...
0
by: Anonieko Ramos | last post by:
ASP.NET Forms Authentication Best Practices Dr. Dobb's Journal February 2004 Protecting user information is critical By Douglas Reilly Douglas is the author of Designing Microsoft ASP.NET...
5
by: Gavin Stevens | last post by:
I'm trying to figure out the ASP.NET Forms Auth I have 3 or 4 pages i want to allow anonymous access to.. Then I have 5 or 6 pages I placed in another directory in the webproject. These I want...
4
by: 23s | last post by:
I had this problem in the past, after a server reformat it went away, and now after another server reformat it's back again - no clue what's doing it. Here's the flow: Website root is public, no...
6
by: Manny Chohan | last post by:
I am using forms authetication in the web config. i can validate a user against a database and click on images which makes hidden panels visible.However when i click on the link inside a panel...
5
by: ~~~ .NET Ed ~~~ | last post by:
Hi, As you all know when an ASP.NET web form is created that will include web controls and such, it contains a FORM that that identifies the web form and its containing controls. Well, I have a...
7
by: Alan Silver | last post by:
Hello, Sorry this is a bit wordy, but it's a pretty simple question... I have a web site, http://domain/ which is a public site, part of which (http://domain/a/) is protected by forms...
5
by: c676228 | last post by:
Hi everyone, my colleagues are thinking about have three insurance plans on one asp page: I simplify the plan as follow: text box:number of people plan1 plan2 plan3
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.