How Can I Achieve This...?I Really Need You
im new to php and i need a help fixing up my site. i have a code that is linking to an online payment site but i want the link to go instead to emails of my assistants... so instead of going to paypal i want the link to go to info@example.com, admin@example.com,tickects@example.com. please how can i achieve this.
i have included the codes here for you to see.
<?php get_header();?> <?php global $wpdb; echo tgt_get_inner_background(); require_once dirname( __FILE__ ) . '/functions/form_process.php'; if(count($get_room)< $num_rooms) { ?> <div class="localization"> <p class="site-loc"> <a href="<?php echo HOME_URL;?>" style="color:white"> <?php echo get_option('tgt_hotel_name');?> </a> </p> <p>» <?php _e('Booking payment','hotel'); ?></p> </div> <div style="clear:both;"></div> <div class="middle-inner"> <div class="center-inner"> <div class="title"> <p class="h1"><?php _e('Booking','hotel'); ?></p> <font color="#FF0000" style="font-size:14px;"><?php _e('Booking has a problem, please try again', 'hotel'); ?></font> <div style="clear:left;"></div> <div id="search" style="margin-top:15px; float:left; margin-left:0;"> <div id="search_left"></div> <div id="search_center"><a href="#dialog" name="modal"><?php _e('Back','hotel'); ?></a></div> <div id="search_right"></div> </div> </div> </div> </div> <?php }else { require_once dirname( __FILE__ ) . '/booking_sub.php'; $guest_in_room = $num_adults + $num_kids; ?> <div class="localization"> <p class="site-loc"> <a href="<?php echo HOME_URL;?>" style="color:white"> <?php echo get_option('tgt_hotel_name');?> </a> </p><p>» <?php _e('Booking payment','hotel'); ?></p> </div> <div style="clear:both;"></div> <div class="middle-inner"> <div class="center-inner"> <div class="title"> <p class="h1"><?php _e('Booking','hotel'); ?></p> <div class="contact-form" style="margin:15px 0;"> <table width="100%"> <tbody> <tr> <td class="booking2"><strong><?php _e('Arrival/Check-in','hotel'); ?></strong></td> <td class="booking2"><?php echo date('d M y',$arrival_date); ?></td> </tr> <tr> <td class="booking2"><strong><?php _e('Departure/Check-out','hotel'); ?></strong></td> <td class="booking2"><?php echo date('d M y',$departure_date); ?></td> </tr> <tr> <td class="booking2"><strong><?php _e('Rooms Type','hotel'); ?></strong></td> <td class="booking2"><?php echo $room_type->post_title; ?></td> </tr> <tr> <td class="booking2"><strong><?php _e('Number Rooms','hotel'); ?></strong></td> <td class="booking2"><?php echo $num_rooms; ?></td> </tr> <tr> <td class="booking2"><strong><?php _e('Occupancy','hotel'); ?></strong></td> <td class="booking2"><?php echo $num_adults.' '.__('Adult(s)','hotel'); ?> <?php echo __('and','hotel').' '.$num_kids.' '.__('Kid(s)','hotel'); ?></td> </tr> <tr> <td class="booking2"><strong><?php _e('Day(s)','hotel'); ?></strong></td> <td class="booking2"><?php echo $day_rate; ?></td> </tr> <tr> <td class="booking2"><strong><?php _e('Guests per Room','hotel'); ?></strong></td> <td class="booking2"><?php echo $guest_in_room; ?></td> </tr> <tr> <td class="booking2"><strong><?php _e('Price per room','hotel'); ?></strong></td> <td class="booking2"><?php echo $room_price.' '.$currencysymbol; ?></td> </tr> <?php if($room_discount != '' && $room_discount > 0) { ?> <tr> <td class="booking2"><strong><?php _e('Discount','hotel'); ?></strong></td> <td class="booking2"><?php echo $room_discount.' %'; ?></td> </tr> <?php } ?> <tr> <td class="booking2"><strong><?php _e('Deposit','hotel'); ?></strong></td> <td class="booking2"><?php echo $deposit.' %'; ?></td> </tr> <tr> <td class="booking2" style="color:#955845;"><strong><?php _e('Total Charges','hotel'); ?></strong></td> <td class="booking2" style="color:#955845;"><strong><?php echo $paid.' '.$currencysymbol; ?></strong></td> </tr> </tbody> </table> <div id="search" style="margin-top:15px; float:right;"> <div id="search_left"></div> <div id="search_center"><a target="_blank" href="<?php echo tgt_get_link_term(); ?>"><?php _e('Terms & Conditions','hotel');?></a></div> <div id="search_right" style="background: url('<?php echo TEMPLATE_URL;?>/images/search-btnright4.png')"></div> </div> </div> <div style="clear:both;"></div> <div class="contact-form"> <p class="h1" style="color:#282323; padding-bottom:10px; font:35px Georgia;"><?php _e('Traveller Details','hotel'); ?></p> <!-- start fill info --> <div id="fill_info" style="display:"> <form method="post" name="form_fill_info" id="form_fill_info" action="" > <div style="width:290px; float:left;"> <div class="input-content"> <p><?php _e('Title :','hotel');?></p> <select class="select2" name="s_title" id="s_title"> <option value="Mr."><?php _e('Mr.','hotel'); ?></option> <option value="Mrs."><?php _e('Mrs.','hotel'); ?></option> <option value="Ms."><?php _e('Ms.','hotel'); ?></option> </select> </div> <div class="input-content"> <p><?php _e('First Name :','hotel');?>*</p> <input class="input" type="text" name="first_name" id="first_name" size="15" /> <p id="first_err" style="width:auto; font-weight:normal; font-size:12px; color:#FF0000;"></p> </div> <div class="input-content"> <p><?php _e('Phone :','hotel');?>*</p> <input class="input" type="text" name="phone" id="phone" size="15" /> <p id="phone_err" style="width:auto; font-weight:normal; font-size:12px; color:#FF0000;"></p> </div> <div class="input-content"> <p><?php _e('City/State :','hotel');?>*</p> <input class="input" type="text" name="state" id="state" size="15" /> <p id="state_err" style="width:auto; font-weight:normal; font-size:12px; color:#FF0000;"></p> </div> </div> <div style="width:290px; float:left;"> <div class="input-content"> <p><?php _e('Email :','hotel');?>*</p> <input class="input" type="text" name="email" id="email" size="15" /> <p id="email_err" style="width:auto; font-weight:normal; font-size:12px; color:#FF0000;"></p> </div> <div class="input-content"> <p><?php _e('Last Name :','hotel');?>*</p> <input class="input" type="text" name="last_name" id="last_name" size="15" /> <p id="last_err" style="width:auto; font-weight:normal; font-size:12px; color:#FF0000;"></p> </div> <?php $country = tgt_get_countries(TEMPLATE_URL.'/data/countries.xml'); $def_country = get_option('tgt_hotel_country'); ?> <div class="input-content"> <p><?php _e('Country :','hotel');?>*</p> <select name="country" id="country" class="select2" > <?php foreach ($country as $k=>$v) { ?> <option value="<?php echo $k; ?>" <?php if($def_country == $k) echo 'selected="selected"' ?>><?php echo $k; ?></option> <?php } ?> </select> </div> <div class="input-content"> <p><?php _e('Street :','hotel');?>*</p> <input class="input" type="text" name="street" id="street" size="15" /> <p id="street_err" style="width:auto; font-weight:normal; font-size:12px; color:#FF0000;"></p> </div> </div> <div class="input-content" style="float:left; width:600px; margin-top:10px;"> <input style="float:left; margin-right:10px;" type="checkbox" id="check_agree" name="check_agree"> <p style="font-size:12px; font-weight:normal;"> <?php _e('Yes, I agree that my credit card will be charged at the time of booking according to the rate deposit or prepay policy.','hotel'); ?></p> </div> <div style="clear:left;"></div> <div id="search" style="margin-top:0; float:left; margin-left:0;"> <div id="search_left"></div> <div id="search_center"><a href="#dialog" name="modal"><?php _e('Change Date','hotel'); ?></a></div> <div id="search_right" style="background: url('<?php echo TEMPLATE_URL;?>/images/search-btnright4.png')"></div> </div> <div id="search" style="margin-top:0; margin-left:0; float:right;"> <div id="search_left"></div> <div id="search_center"> <input type="button" name="submit_continue" onclick="fill_data('fill_info');" value="<?php _e('Continue','hotel');?>" id="butt_save" class="png" /> </div> <div id="search_right"></div> </div> </form> </div> <div style="clear:both;"></div> </div> <!-- end fill info --> <!-- start list info --> <div id="list_info" style="display:none"> <div class="contact-form" style="margin:15px 0;"> <table width="100%"> <tbody> <tr> <td class="booking2" width="47%"><strong><?php _e('Customer','hotel'); ?></strong></td> <td class="booking2"><div id="show_full_name"></div></td> </tr> <tr> <td class="booking2"><strong><?php _e('Email','hotel'); ?></strong></td> <td class="booking2"><div id="show_email"></div></td> </tr> <tr> <td class="booking2"><strong><?php _e('Phone','hotel'); ?></strong></td> <td class="booking2"><div id="show_phone"></div></td> </tr> <tr> <td class="booking2"><strong><?php _e('Country','hotel'); ?></strong></td> <td class="booking2"><div id="show_country"></div></td> </tr> <tr> <td class="booking2"><strong><?php _e('State','hotel'); ?></strong></td> <td class="booking2"><div id="show_state"></div></td> </tr> <tr> <td class="booking2"><strong><?php _e('Street','hotel'); ?></strong></td> <td class="booking2"><div id="show_street"></div></td> </tr> </tbody> </table> <?php if($paid == 0 || get_option('tgt_permit_payment') == 0) { ?> <form method="POST" name="submit_payment_free" id="submit_payment_free" action="<?php echo tgt_free_payment_link (); ?>" > <input type="hidden" name="pay_free" value="yes"> <input type="hidden" name="u_id_free" id="u_id_free"> <input type="hidden" name="room_type_free" id="room_type_free" value="<?php echo $room_type->ID; ?>"> <input type="hidden" name="num_rooms_free" id="num_rooms_free" value="<?php echo $num_rooms; ?>"> <input type="hidden" name="date_in_free" id="date_in_free" value="<?php echo $date_in; ?>"> <input type="hidden" name="date_out_free" id="date_out_free" value="<?php echo $date_out; ?>"> <div style="clear:left;"></div> <div id="search" style="margin-top:15px; float:left; margin-left:0;"> <div id="search_left"></div> <div id="search_center"><a href="#dialog" name="modal"><?php _e('Change Date','hotel'); ?></a></div> <div id="search_right"></div> </div> <div id="search" style="margin-top:15px; float:right;"> <div id="search_left"></div> <div id="search_center"> <input type="submit" name="submit_confirm" value="<?php _e('Confirm','hotel');?>" id="butt_save" class="png" /> </div> <div id="search_right"></div> </div> </form> <?php }else if(get_option('tgt_permit_payment') == 1 && $paid >0) { ?> <form method="POST" name="submit_payment" id="submit_payment" action="https://www.paypal.com/cgi-bin/webscr" > <input type="hidden" name="cmd" value="_ext-enter"> <input type="hidden" name="redirect_cmd" value="_xclick"> <input type="hidden" name="return" id="paypal_return" > <input type="hidden" name="cancel_return" id="paypal_cancel_return"> <input type="hidden" name="business" value="<?php echo get_option('tgt_paypal_email'); ?>"> <input type="hidden" name="rm" value="2"> <input type="hidden" name="currency_code" value="<?php echo get_option('tgt_currency'); ?>"> <input type="hidden" name="quantity" value="1"> <input type="hidden" name="item_name" value="<?php bloginfo('name'); ?> Booking Submission"> <input type="hidden" name="item_number" id="paypal_item_number"> <input type="hidden" name="amount" id="amount" value="<?php echo $paid;?>"> <input type="hidden" name="invoice" id="paypal_invoice"> <input type="hidden" name="cbt" value="Book Room Online →"> <div style="clear:left;"></div> <div id="search" style="margin-top:15px; float:left; margin-left:0;"> <div id="search_left"></div> <div id="search_center"><a href="#dialog" name="modal"><?php _e('Change Date','hotel'); ?></a></div> <div id="search_right"></div> </div> <div id="search" style="margin-top:15px; float:right;"> <div id="search_left"></div> <div id="search_center"> <input type="submit" name="submit_continue" value="<?php _e('Confirm & Pay','hotel');?>" id="butt_save" class="png" /> </div> <div id="search_right"></div> </div> </form> <?php } ?> </div> <div style="clear:both;"></div> </div> <!-- end list info --> </div> </div> </div> <?php } ?> <?php get_sidebar();?> <div style="clear:left;"></div> <div class="bottom"> <img src="<?php echo TEMPLATE_URL; ?>/images/inner-page-bottom.jpg" /> </div> </div> <!-- content end --> <?php get_footer();?>
-
Brandon Tanner -
Thanks
Signature{{ DiscussionBoard.errors[8492961].message }} -
-
filiks -
Thanks
{{ DiscussionBoard.errors[8493236].message }} -
-
David Beroff -
Thanks
SignaturePut MY voice on YOUR video: AwesomeAmericanAudio.com{{ DiscussionBoard.errors[8493482].message }} -
-
brutecky -
Thanks
SignatureJoin over 7500 marketers on my Facebook group and also get tons of free tutorials and software to help you with your business.{{ DiscussionBoard.errors[8495193].message }} -
-
maruka Banned-
Thanks - 1 reply
{{ DiscussionBoard.errors[8501935].message }}-
David Beroff -
[ 1 ] Thanks
SignaturePut MY voice on YOUR video: AwesomeAmericanAudio.com{{ DiscussionBoard.errors[8502013].message }} -
-
-
maruka Banned-
Thanks
{{ DiscussionBoard.errors[8501999].message }} -