Title: Help about the hooks
Last modified: August 24, 2016

---

# Help about the hooks

 *  [jovicbratislav](https://wordpress.org/support/users/jovicbratislav/)
 * (@jovicbratislav)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/help-about-the-hooks/)
 * Hi i havee a next form down and i want to implement with contact form 7 i am 
   not so good in hooks so lloking for a little help:
    ////////////////////form/////////////////////////////////
   <form method=”post” align=”middle”> <div align=”center”> <h1>KALKULACIJA</h1>
 * <h3><legend>Calculation</legend></h3>
    <strong<label for=”broj odraslih” size
   =15 class=”cctm_label cctm_text” id=”cctm_label_brojodraslih”>Broj Odraslih*</
   label> <input type=”number” name=”cctm_brojodraslih” class=”cctm_text ” id=”cctmbrojodraslih”
   min=”1″ max=”5″ value=”1″ />
 * <strong<label for=”Broj dece” class=”cctm_label cctm_text” id=”cctm_label_brojdece”
   >Broj dece*</label>
    <input type=”number” name=”cctm_brojdece” class=”cctm_text”
   id=”brojdece” min=”0″ max=”5″ value=”0″/>
 * **Hotel cena za odrasle** <?php print_custom_field( ‘hotelcenazaodrasle’ ); ?
   >
    **hotel cena za decu** <?php print_custom_field( ‘hotelcenazadecu’ ); ?> **
   Avio karta za odrasle cena ** <?php print_custom_field( ‘aviokartazaodrasle’ );?
   > **Avio karta za decu cena ** <?php print_custom_field( ‘aviokartezadecu’ );?
   >
 * <input type=”submit” name=”Calculate” value=”Calculate” formtarget=”_self”
 * **
    <?php
 * $a = get_custom_field( ‘hotelcenazaodrasle’ );
    $b = $_POST[‘cctm_brojodraslih’];
   $c = get_custom_field( ‘hotelcenazadecu’ ); $d = $_POST[‘cctm_brojdece’]; $e 
   = get_custom_field( ‘aviokartazaodrasle’ ); $f = get_custom_field( ‘aviokartezadecu’);
 * $hotel = ( $a * $b ) + ( $c * $d );
 * $aviokarte = ( $e * $b ) + ( $f * $d );
 * $total = ( $a * $b ) + ( $c * $d ) + ( $e * $b ) + ( $f * $d );
    print ( “HOTEL
   $hotel ” ); print ( “AVIO KARTE $aviokarte ” ); print ( “<h3>TOTAL EUR</h3> $
   total ” ); ?>
 * </form>
 * [https://wordpress.org/plugins/contact-form-7/](https://wordpress.org/plugins/contact-form-7/)

The topic ‘Help about the hooks’ is closed to new replies.

 * ![](https://ps.w.org/contact-form-7/assets/icon.svg?rev=2339255)
 * [Contact Form 7](https://wordpress.org/plugins/contact-form-7/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [jovicbratislav](https://wordpress.org/support/users/jovicbratislav/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/help-about-the-hooks/)
 * Status: not resolved