User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 403,498 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,260 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 1968 | Replies: 3
Reply
Join Date: Nov 2006
Location: Denmark
Posts: 4
Reputation: saitaj is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
saitaj's Avatar
saitaj saitaj is offline Offline
Newbie Poster

Help Connect submit button to a table

  #1  
Nov 8th, 2006
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 !
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Oct 2006
Location: India
Posts: 1,289
Reputation: vishesh is on a distinguished road 
Rep Power: 4
Solved Threads: 32
vishesh's Avatar
vishesh vishesh is offline Offline
Nearly a Posting Virtuoso

Re: Connect submit button to a table

  #2  
Nov 8th, 2006
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.
Reply With Quote  
Join Date: Nov 2006
Location: Denmark
Posts: 4
Reputation: saitaj is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
saitaj's Avatar
saitaj saitaj is offline Offline
Newbie Poster

Re: Connect submit button to a table

  #3  
Nov 8th, 2006
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.
Reply With Quote  
Join Date: Dec 2004
Posts: 1,590
Reputation: tgreer is an unknown quantity at this point 
Rep Power: 7
Solved Threads: 34
Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: Connect submit button to a table

  #4  
Nov 8th, 2006
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 2:08 pm.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb JavaScript / DHTML / AJAX Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum

All times are GMT -4. The time now is 12:25 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC