943,905 Members | Top Members by Rank

Ad:
Nov 8th, 2006
0

Connect submit button to a table

Expand Post »
Hello, I want people to tickmark som items in a table and when they click on submit button the items they have tickmarked should be listed in an email to me. How do I do this in HTML and where exactly do I add the code. I know very little about codes and have created a website entirely using frontpage options.
Hope someone can help me. Thanking you !
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
saitaj is offline Offline
4 posts
since Nov 2006
Nov 8th, 2006
0

Re: Connect submit button to a table

To do that you need to learn a JavaScript or server side scripting language such as ASP, PHP etc... Your submit button will call a JavaScript fuction which will send email or goto an server side page which will generate it, whatever you choose.
Reputation Points: 85
Solved Threads: 42
Nearly a Posting Virtuoso
vishesh is offline Offline
1,362 posts
since Oct 2006
Nov 8th, 2006
0

Re: Connect submit button to a table

Hm, I was hoping to fix it with HTML. Do you know a bit of code that can do the above? Or do you know a work around? Is there a simple code that can be given to a button so that people easily can copy the tickmarked material from the table simply by clicking on my own Copy Button? Hmmm, seems to be quite difficult.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
saitaj is offline Offline
4 posts
since Nov 2006
Nov 8th, 2006
0

Re: Connect submit button to a table

Sorry. The way the web works is simple:

1. Create a page, using HTML, HTML forms, and whatever JavaScript and/or CSS is needed to perform client-side functions.

2. Create a server-side program, using PHP, ASP, ASP.NET, or CGI, to process the data sent by the HTML form or query.

In your case, you build a standard HTML form with a submit button. When the data is submitted, something has to process it and generate an email. You'll have to learn a server-side language for this. I recommend PHP.

Think of it this way: what would generate an email? A web browser isn't an email program. So it couldn't send the email. Couldn't the browser maybe talk to the client's email program, and let it send an email? Sure... if they have an email program. And which one would it be? Outlook? Thunderbird? And do we really want a web page to be able to send emails through my email program? Sounds a bit like a virus, or spyware.

Hopefully you can see that in order for a web application to generate emails, it has to have a server-side component.

P.S. Where in Denmark are you? I spent some time in Silkeborg working for Jyske Bank. Loved it!
Last edited by tgreer; Nov 8th, 2006 at 3:08 pm.
Team Colleague
Reputation Points: 227
Solved Threads: 37
Made Her Cry
tgreer is offline Offline
1,697 posts
since Dec 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in JavaScript / DHTML / AJAX Forum Timeline: Trim Strings
Next Thread in JavaScript / DHTML / AJAX Forum Timeline: Javascript for gallery display





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC