Category : forms

I have this form: <form name="form" action="course_submit.php" onsubmit="return validateForm()" method="post"> … </form> And I’d like to add a few json arrays to POST in validateForm() after validation, so that when validateForm() returns true, the updated POST will be sent to course_submit.php. What’s the best wya to go about this? Thanks! Sourc..

Read more

I need to sort the location items in alphabetical order in this search form: http://v2trgmanagementcompanycom.temp312.kinsta.cloud/portfolio/ The locations should be listed alphabetically. Can someone help with updating the below code? This is the current code: <?php $array = OSF_Custom_Post_Type_Portfolio::getInstance()->get_all_meta_field_value(); ?> <div class="search-project"> <form action="<?php echo get_post_type_archive_link(‘osf_portfolio’); ?>" method="get"> <div class="d-flex justify-content-center project-group"> <div class="project-inner"> <select name="osf_portfolio_type"> ..

Read more

I need to sort the locations in alphabetical order in this search form: http://v2trgmanagementcompanycom.temp312.kinsta.cloud/portfolio/ All of the options are coming from WordPress portfolio. This should be the code for that form: <?php $array = OSF_Custom_Post_Type_Portfolio::getInstance()->get_all_meta_field_value(); ?> <div class="search-project"> <form action="<?php echo get_post_type_archive_link(‘osf_portfolio’); ?>" method="get"> <div class="d-flex justify-content-center project-group"> <div class="project-inner"> <select name="osf_portfolio_type"> <option value=""><?php echo ..

Read more

I am working with a CMS and a payment gateway, it is required that I pass the a form through php. I need to get the value of the input field and save it in a variable declared in my constructor. Below is the function that has the form. function getPaymentForm($db){ $transaction_id = mt_rand(100000000000, 999999999999); ..

Read more

I have a hand-built (HTML/PHP) site that I would like to replicate on WordPress. The site includes a form which sends the user input to a 3rd party server which returns a price quote which then gets displayed. The structure is as follows: <?php if($_REQUEST[‘page’]==”){ <form id=frm action=” method=post> <input type=hidden name=page value=calcs> … <input ..

Read more