If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Need some help !

Hey, as the title says i need some help. I currently have a contact form ( self made). Easiest way to explain.
I have a form : http://martinlougas.eu/pood.html . Problem is that on the right side the checkboxes, once you check them the price (shown after the name) has to display in a box under "Summa". Currently it is only showing when all of the boxes are checked. ( Yes i know that one is selected by default, it has to be and it has to be not "deselectable" . After the price displaying is okay, it should send it to certain email with all the info ( boxes) selected and showing the price.

If it was hard to understand. If you select for example Line-X then 350 will be added to the "Summa" box, if you deselect it, it will be taken away from there. Default value should be 50 since one of the boxes is always selected.

I don't have enough words how to thank you, mate. Now all i gotta do is figure out how to send all that info to a certain email address. Showing what radio button was clicked and what checkboxes have been clicked + all the data from contant form as well.

I know it might be wrong post where to type it, but could anyone help me creating a mail.php. What should i write there in order to send the checked checkbox info and selected radio button info to email ?

I don't have enough words how to thank you, mate. Now all i gotta do is figure out how to send all that info to a certain email address. Showing what radio button was clicked and what checkboxes have been clicked + all the data from contant form as well.

Again, thank you so much JMRKER

You're most welcome.
Happy to help.

You should be able to have access to a program similar to "formmail.cgi" on your server.
Most have it or something like it. Check with your administrator.

Hey, is it possible to add some text to the value part without messing up the calculator ?

<input type="checkbox" value="45" id="part4" onclick="DisplayPrice();">Suojapressu - 45.00 &euro;<br> To add something like suojapressu (because this form has to send the selected value as an email to certain email)

I'm sorry but I don't understand the question.
It is probably because I can't read the language, but that is my problem.

If you add something to the "DisplayPrice()" function, you will be adding it to ALL actions of the checkbox change.
Is that your real need or is it that you wish to submit the total to the email after ALL checkboxes have been selected?

If the latter is the real need, you would be better off creating a new function that could be executed
to send the information via a <form> tag assignment using the "onsubmit="return someFunctionToEmail()"
See <input> tag with type="submit" value="Submit" via a google search. This would create a 'submit' button.

Okay let me try to make it more understandable.
Currently if i send the email it posts the value="value" to the email. BUT is it possible to send
<input type="checkbox" value="350" id="part2" onclick="DisplayPrice();">Line – X (suosittelemme) - 350.00 &euro
( see the bold part ) as well ?
I tried to add the name to value as value="350, linex" but that only messed up the calculator and it displays NaN. But in the email it says correctly what it needs to display.

Okay let me try to make it more understandable.
Currently if i send the email it posts the value="value" to the email. BUT is it possible to send
<input type="checkbox" value="350" id="part2" onclick="DisplayPrice();">Line – X (suosittelemme) - 350.00 &euro
( see the bold part ) as well ?
I tried to add the name to value as value="350, linex" but that only messed up the calculator and it displays NaN. But in the email it says correctly what it needs to display.

You have not indicated how you plan on saving the extra information nor how you plan to send it to your server,
so I'll leave that up to you using the information created in the "DisplayPrice()" function.

Note the other changes I made to the radiobutton and checkbox value settings.