Welcome to WebmasterWorld Guest from 54.145.4.19

Forum Moderators: incrediBILL

Message Too Old, No Replies

html form

html form

     

LightBulb

10:23 pm on Aug 27, 2012 (gmt 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 ?

Regards,
LightBulb

rainborick

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

WebmasterWorld Senior Member 10+ Year Member



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.

LightBulb

2:38 pm on Aug 28, 2012 (gmt 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,

Regards,
LightBulb,
 

Featured Threads

Hot Threads This Week

Hot Threads This Month