homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

html form
html form

Msg#: 4488858 posted 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 ?




WebmasterWorld Senior Member 10+ Year Member

Msg#: 4488858 posted 2:18 pm on Aug 28, 2012 (gmt 0)

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.


Msg#: 4488858 posted 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,


Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved