Welcome to WebmasterWorld Guest from

Forum Moderators: incrediBILL

Message Too Old, No Replies

html form

html form

10:23 pm on Aug 27, 2012 (gmt 0)

New User

5+ Year Member

joined:Aug 27, 2012
posts: 4
votes: 0

I am building a form in html which then goes to a php script and send the completed form,

The form makes calculations with javascript then sends the form to me and also a copy to the client,

However, most of the form is ok appart from the calculated bit, it will not send the result of the calculation by e-mail with it being in <span> tags, it will however send if i use <input class> tags but this gives me the problem of not being able to use "if statements" on this part of the form,
Can anyone help or advise on this issue ?

2:18 pm on Aug 28, 2012 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Apr 15, 2003
votes: 28

You could copy the result of your calculation an <input type='hidden'> tag as well as displaying it in your <span>. Then the information would be sent to your script along with the rest of the <form> data.
2:38 pm on Aug 28, 2012 (gmt 0)

New User

5+ Year Member

joined:Aug 27, 2012
posts: 4
votes: 0

Hi,Thanks for your reply,
I have tried that but is dosen`t seem to work,

The below code is what i have:
( html form )
<td><span class="gyy">&pound;<span id="result_price" name"result_price"></span></td>

( php for sending form to e-mail )

<td class='left' >&pound; ".$_GET['result_price']."</td>

I need the result price to go to the e-mail form,

Any help would be very much appreciated,


Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members