0

hello ever body thank to take to read my question.
i develop my website in dreamweaver i'm not good in php but i try and i learn,
i want calculate the total price of goods and i use html form i want 3 different shipping when customer shoose the total must change but i don't know how and i tried this it don't work.

<?php $shipping1='20.78';
              $shipping2='12.89';
              $shipping3='0.00'
              ?>
                <option value="20.00"><?php echo $shipping1 ?> </option>
                <option value="0.00"><?php  echo $shipping2 ?> </option>
                <option value="12.00"><?php echo $shipping3 ?></option>
              </select>
              <label for="shipping">Total</label><input name="total" type="text" id="total" value="<?php echo number_format ($row_total['total'], 2, '.', ''); ?>" readonly>
              <input name="total" type="text" value="<?php echo $row_panier['prix'+$shipping1]; ?>">
3
Contributors
5
Replies
20
Views
4 Years
Discussion Span
Last Post by diafol
0

You need to focus on javascript /jquery to make it user interactive.

Php will play role at the time of loading or saving from /to server.

0

i never use javascript and jquery where can i find hlp

Type jquery into a search engine.
Type in javascript tutorial into a search engine

0

i have read small article on avascript and jquerry but for my problem i don't how to aply

0

Start small and work up to more complicated examples.
If you want to use jquery, it couldn't really be easier...

Place this at the bottom of your page (just above the </body> tag)

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script>
     /* your javascript / jquery code goes here */
</script>

Examples of jQuery code could be, say you have a

<p class="first">This is my first paragraph</p>

Tag like that in your html...

<script>
     $('.first').html('This is my jQuery content');
</script>

Anyway, if you want jQ/jS help - go to that forum...

http://www.daniweb.com/web-development/javascript-dhtml-ajax/117

Edited by diafol

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.