Hello. I am using a lightbox form with a drop-down list. When I choose a value from the dropdown list, I want it to be assigned to a php variable which I will then use to update the total price of the form (the total price is already defined in the form). Here is the link to the relevant page: https://mobilitypro.eu/course/e-learning-blended-learning-and-introduction-to-web-designing/ . When the user clicks Book Now, the lightbox form appears. The problem is with the dropdown list "Select package": when an option is selected, I cannot pass its numerical value to a php variable (before submitting the form). …

Member Avatar
Member Avatar
+0 forum 1

I have a form <form action="frame.html" method="GET"> <input type="text" name="SOMEID" /> <input type="submit" value="Submit" /> </form> I'd like to pass SOMEID to the frame.html page in a few places as html links: link/embed/$SOMEID link/analytics/$SOMEID link/blah/$SOMEID where $SOMEID was the form input on the previous page. If someone types 1234, i'd like to place 1234 anywhere I want on frame.html without writing to the html file and if possible, without using a web server. That way someone using a laptop can just launch the html file from the desktop and run it. I am an AV and server person. Someone assumes …

Member Avatar
Member Avatar
+0 forum 3

<form class="nice-form" action="" method="post"> <?php session_start(); // echo "<script>console.log('test')</script>"; // echo "<script>console.log(".var_dump($_SESSION) .");</script>"; // echo var_dump($_SESSION); // echo var_dump($_POST); include("../connection.php"); if (isset($_POST['action'])) { if ($_POST['action'] == "assign_user") { $doorId = $_POST["door"]; $username = $_POST["username"]; $approverId = $_SESSION["id"]; // echo var_dump($_POST); $sql = "SELECT * FROM user WHERE id = '$username' "; // $sql = "SELECT * FROM door_permission WHERE door_id ='$doorId' and user_id = $userId "; // echo $sql; $result = mysqli_query($connection, $sql); // echo var_dump($result); $row = mysqli_fetch_assoc($result); // echo var_dump($row); $userId = $row["id"]; if (mysqli_num_rows($result) > 0) { $sql = "REPLACE INTO door_permission (door_id,user_id,approver_id,status) VALUES ('$doorId','$userId','$approverId','allow')"; //echo $sql; …

Member Avatar
Member Avatar
-1 forum 1

This mostly works. It shows the SSN when the first Val radio button is picked. It also shows the PaperAppliction when the second Val radio button is picked. The ONLY problem is that the field PaperApplication shows when the form is loaded before any radio buttons are picked. I need it to hide both SSN and PaperApplicaition until one of the radio buttons is picked, and then show the proper field. What am I missing? **Here is the JS** $(".field.SocialSecurity input[type=radio]").on("change", function() { if ( $(this).val() == "As a U.S. Citizen, permanent resident, or temporary working resident, I have a …

Member Avatar
Member Avatar
+0 forum 1
Reusable Code Snippet Bouncing ball

Wanted to let two forms work together. One form would be the input form and the main form would consume this data. I managed to succeed with the help of a few of my friends here at daniweb., who helped me setup a static form. Just posted a bit of the most relevant code here, the rest of the project can be found in the attachments. I also like to mention a technique used here to attach a value to a selection of a name in a combobox.(Found it on MSDN) See the list of Planets. (Yes, throw a ball …

Member Avatar
Member Avatar
+1 forum 4

Heres a pic of my database table ![Screen_Shot_2019-11-16_at_2_35_54_AM.png](/attachments/large/4/0749479693675147a0ccc8219b89e87f.png) Im trying to create a search page with drop down selectors to filter through each of the last 8 columns. I want the the drop down selectors to be able to select multiple entries (I have this working already) I also want them to preload values from data already entered into my table columns. (I also got this working with the help of tutorials... although I admit I don't fully understand how this part works) Using these tutorials i've created a php page that contains 8 drop down selectors that automatically pull …

Member Avatar
+0 forum 0

My quiz has a textbox, mcq and checkbox. At first, the checkAnswer() worked when I did not input the show() function to my javascript. It showed my overall score. But after I input that show() function to display 1 question at a time, my score is always 5/7 or less. Please do tell what is wrong with my code and if you have any recommendations. Please do tell. Here is the demo. [Click Here](https://codepen.io/huha2511/pen/zYYEaxY?editors=0010) <body> <div id="container" > <div id="start" > <div id="ready"> <button onclick="show('q1')"><h1>START NOW</h1></button> </div> </div> <div id="quiz"> <form name="quizForm" > <div id="q1" style="display:none;" > <!--QUESTION 1--> <div …

Member Avatar
Member Avatar
+1 forum 1

Hello Guys, I am new in this forum. I want to ask a quetion, can anyone tell me, how to learn web design and development? Any idea or any website refrence.

Member Avatar
Member Avatar
+0 forum 1

I have a popup from index.ejs, called math.ejs. After pressing the submit Ok button, I want the math.ejs popup to close and to show the calculated value on index.ejs. But right now, when I press the submit button, the popup goes to index.ejs and updates it there; it does not close. It does not update it on the normal index.ejs browser page. I have to refresh that page for it to update. <form class="" action="/index" method="post" name="mathform"> <p>Value: <%= myValue %></p> <button class="btn btn-md" name="button" value="confirm" onclick="CloseAndRefresh();">Ok</button> </form> <script language="javascript"> function CloseAndRefresh() { opener.location.reload(true); setTimeout(function() { window.close(); }, 3000); } …

Member Avatar
+0 forum 0

Please I need your help, I am new to PHP and I need your help in inserting multiple select array into the database in the form of this. This is what I want to achieve. My table has 3 columns (id, examno, results). I want results column to be inform of subjects grades, subjects grades.........depending on the numbers of subjects and grades users select (e.g English C6, Mathematics C6) all in one column results. ## This is my html codes ## <form action="insert.php"> <div class="form-group"> <label>Exam Number</label> <input type="text" class="form-control" name="examno" id="examno"> </div> <table width="100%" cellpadding="0" cellspacing="0" border="0" class="table table-borderless" …

Member Avatar
+0 forum 0

Please I need your help, I am new to PHP and I need your help in inserting multiple select array into the database in the form of this. This is what I want to achieve. My table has 3 columns (id, examno, results). I want results column to be inform of subjects grades, subjects grades.........depending on the numbers of subjects and grades users select (e.g English C6, Mathematics C6) all in one column results. ## This is my html codes ## <form action="insert.php"> <div class="form-group"> <label>Exam Number</label> <input type="text" class="form-control" name="examno" id="examno"> </div> <table width="100%" cellpadding="0" cellspacing="0" border="0" class="table table-borderless" …

Member Avatar
+0 forum 0

What Is SVG And Why Do You Use It ???

Member Avatar
Member Avatar
+0 forum 3

If an index file is missing in a folder, apache uses its own file/files to list the contents of the folder. Since I don’t want to create an index file in every folder in the file systems, I wonder where I can find the file/files that apache uses when there is no index file.

Member Avatar
Member Avatar
+0 forum 1

Now I am developing Wordpress websites and many of my clients are asking to create online calculators for their websites. Usually, it is required to create a calculator in the shortest possible time and therefore I decided that it was not advisable to create calculators from scratch and began to search for this for ready-made plugins. I looked through a bunch of plugins, but I could not make a choice. I hesitate between these plugins: * https://wordpress.org/plugins/calculated-fields-form/ * https://wordpress.org/plugins/ucalc/ * https://wordpress.org/plugins/wp-creator-calculator/ Have you tried these plugins, should you use them? What wordpress plugins for calculators can you recommend? Thank!

Member Avatar
Member Avatar
+1 forum 2

CAPTCHAs, authentication codes, and click-throughs are the scourge of Internet users everywhere. Nobody wants to waste time filling out a form while they’re browsing the web, even if it takes just a few seconds. But although these systems may be a nuisance, they serve a very important purpose. Blocking bots prevents traffic overloads, reduces DDOS attacks, discourages ad fraud, and protect against login breaches. Still, there are other ways of accomplishing these things, and several blockchain projects are on the case. These projects aim to improve upon traditional anti-bot systems and maintain that some services remain humans-only. So, what are …

Member Avatar
+0 forum 0

**hello When I push submit the page refresh. Any suggestions to stop refresh ? I'm assuming it's something to do with the submit button but I can't figure it out this is my script :** <form id="form1" class="form-horizontal" method="POST" action=""> <input type="hidden" name="action" value="ajouter_reservation" /> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> <h4 class="modal-title" id="myModalLabel">Ajouter une reservation</h4> </div> <div class="modal-body"> <div class="form-group"> <label for="start" class="col-sm-2 control-label"> date debut </label> <div class="col-sm-10"> <input type="text" name="start" class="form-control" id="start" readonly> </div> </div> <div class="form-group"> <label for="end" class="col-sm-2 control-label">date fin </label> <div class="col-sm-10"> <input type="text" name="end" class="form-control" id="end" readonly> </div> </div> > <div …

Member Avatar
Member Avatar
+0 forum 2

I have One Problem in my coding ..I want to upload multiple images in the database in one row with using comma ... for($i=0;$i<count($_FILES['eventpic']['name']);$i++) $pic = $_FILES['eventpic']['name'][$i]; $tmp =$_FILES['eventpic']['tmp_name'][$i]; $location="pics/".$pic; move_uploaded_file($tmp,$location); $q="insert into tbl1(title,tdate,eventpic)values('','','$pic')"; echo $q; through this code i can upload tthe multiple images but not in a single row ....

Member Avatar
+0 forum 0

I am having problem in submitting this form when I select "1" on the number of setting in html form. The submit button is working if I select 2 in the number of sitting from html form as it will show all the form fields but when I select 1, submit form is not working. I am new to PHP This is my html form <form name="register" method="POST" action="process.php"> <label>Select Number of Sitting(s)</label> <select name="sitting" id="sitting" class="form-control" onchange="showDiv(this)"> <option value="1">1</option> <option value="2">2</option> </select> <div class="output1" id="div1" name="onesitting"> <label>School Name</label> <input type="text" name="schoolname[]" id="schoolname1" class="form-control" placeholder="School Name" required> <label>Exam Type</label> <select …

Member Avatar
+0 forum 0

I am a beginner to php and am designing student information system where students need to enter 9 subject and its corresponding grade based on the number of sittings. Is there any better way to do this apart from what I have been doing? These are my codes: <form name="register" method="POST" action="process2.php" > <div class="col-md-12"> <div class="form-group"> <label>Select Number of Sitting(s)</label> <select name="sitting" id="sitting" class="form-control" onchange="showDiv(this)"> <option value="1">1</option> <option value="2">2</option> </select> </div> </div> <div class="output1" id="div1" name="onesitting"> <div class="col-md-6"> <div class="form-group"> <label>School Name</label> <input type="text" name="schoolname1" id="schoolname" class="form-control" placeholder="School Name" required> </div> </div> <div class="col-md-6"> <div class="form-group"> <label>Exam Type</label> <select …

Member Avatar
Member Avatar
+0 forum 2

Im using MongoDB with PHP. Im making a check user exist using their email.It can be check, but when I enter the existing user and click the confirm button, it display the 'echo' and also display an error about converted document to int. Below is what the error say and my code. **ERROR** Fatal error: Uncaught Error: Call to a member function count() on null in C:\xampp\htdocs\project\OrgChart-master\OrgChart-master\resetPasswordSuccess.php:36 Stack trace: #0 {main} thrown in C:\xampp\htdocs\project\OrgChart-master\OrgChart-master\resetPasswordSuccess.php on line 36 **CODE** <!-- MongoDB Conn With Email Check Function V1 (FUNCTIONING) --> <!--Line 36 is at if($result==0)--> <?php if(isset($_POST['registration'])) { $registration = ($_POST['registration']); if(!empty($registration)) …

Member Avatar
Member Avatar
+0 forum 1

I have a form which I am using to filter a recordset. It all works as I want, but for one small annoying thing - there is an empty space at the top of the list of options (see screenshot). How can I get rid of this empty option? ![empty_option.jpg](/attachments/large/4/5ddcc6d6df75ecd1a8e0babbae2b31ba.jpg) I have checked the recordset which is used to generate the options for the dropdown list and this is OK, i.e. correct number of options. <?php $con=mysqli_connect("localhost","jtwiname"); if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); } $query_rs5 = "SELECT distinct class FROM classname"; $rs5 = mysqli_query($con, …

Member Avatar
Member Avatar
+0 forum 2

I have read quite a few posts on how to do this (Retain Selected Value PHP Dynamic Drop Down List), but cannot quite understand what to do. What I have works, but it does not retain the selected. Any help appreciated. <form action="" method="POST" name="form1" id="form1"> <select name="selClass" size="1" id="selClass" onchange="form1.submit()"> <option value="">Select a class</option> <?php echo "<option value='" . "All records" . "' . >" . "all records" . "</option>"; while ($row1 = mysqli_fetch_array($rs5)) { echo "<option value='" . $row1["class"] . "'>" . $row1["class"] . "</option>"; } ?> </select> </form>

Member Avatar
Member Avatar
+0 forum 1

My career was mostly COBOL with some FORTRAN, Assembler, and C thrown in. Around 1998 my internet service provider offered free, client side sites to its customers. I picked up HTML and JavaScript from books now almost twenty years old and have several dozen pages on my site relating to hobbies or problems I was interested in at some time. When I started, forms and tables were the way to format a page. I started to learn CSS and, while I can follow working code, I am a **long** way from saying I command it. Would I have any future …

Member Avatar
Member Avatar
+0 forum 1

Hi, I want to make online shop and I made most of it but I have problem on product page.I want for "customers" ( this is my personal project so ... ) to be able to choese and then what they choese to be store into table. I struggling with this more then 3 hour , I try everyhing , this is my last shoot. (I used the echo because I want to show it , so after that I would put insert into, but ... I was not able to do it ) <?php $con = mysqli_connect("localhost","root","","basic"); $query = …

Member Avatar
Member Avatar
+0 forum 1

Here my form auto responce based on drop-down list, <tr> <th>Shipping Cost (Rs) : </th> <td id="findata"></td> <input type="hidden" name="shipping_cost" id="shipping_cost"/> </tr> <tr> Same page Ajax : <script> $(document).ready(function(){ $('#new').on('change',function(){ var zip = $("#zip_postal_code").val(); var country = $("#country").val(); $.ajax({ type: "POST", // url: "ajax_ship_cost_data.php", url: "sp_cost.php", dataType: "text", data: { zip_postal_code: zip, country: country}, success: function(data) { // Check the output of ajax call on firebug console //console.log(data); $('#findata').html(data); $('#shipping_cost').val(data); } }); }); }); </script> The field **Shipping Cost** is auto responce based following field, <tr> <th>I have : </th> <td> <select id="old" name="i_have"> <option value = "select_option">Select Option</option> <option …

Member Avatar
+0 forum 0

I'm a novice in PHP and I would like to know on how exactly could I define said row. Any helps/tips are appreciated. Thank you in advanced! function add_review() { if(isset($_POST['add_review'])){ (THE UNDEFINED ROW) **$product_id = $row['product_id'];** $review_name = escape_string($_POST['review_name']); $review_email = escape_string($_POST['review_email']); $review_content = escape_string($_POST['review_content']); $review_created = date("Y-m-d H:i:s"); $rating = escape_string($_POST['rating']); $review_query = query("INSERT INTO reviews(review_id, product_id, review_name, review_email, review_content, review_created, rating) VALUES('NULL', '$product_id', '$review_name', '$review_email' , '$review_content' , '$review_created' , '$rating')"); confirm_query($review_query); set_message("Thank you for the feedback!"); }}

Member Avatar
Member Avatar
+0 forum 1

I'm looking for developers for my store, can you help me to find good developers of shopify. Maybe you're worked with someone, preferably in the answer to indicate why you chose them.

Member Avatar
Member Avatar
+0 forum 1

Hello i have this form and my php code skills not very good if someone make change password I would be glad thank you <div class="col-lg-9"> <div class="nk-box-3 bg-dark-1"> <form class="change-password" method="post" action=""> <input type="password" class="form-control input-change-password" name="opass" id="opass" placeholder="Old Password"> <div class="nk-gap-1"></div> <input type="password" class="form-control input-change-password" name="npass" id="npass" placeholder="New Password"> <div class="nk-gap-1"></div> <input type="password" class="form-control input-change-password" name="cnpass" id="cnpass" placeholder="Repeat New Password"> <div class="nk-gap-1"></div> <button type="Update" class="nk-btn link-effect-4 ready"><span class="link-effect-inner"><span class="link-effect-l"><span>Change password</span></span><span class="link-effect-r"><span>Change password</span></span><span class="link-effect-shade"><span>Change password</span></span></span></button> </form> </div> </div>

Member Avatar
Member Avatar
+0 forum 12

I created a small landing page in Mobirise. I'm selling hand-made soap. I want my customers could go back to my page after the purchase but I don't know how to do that. Also the form doesn't send any confirmation email. Could you please help me? Thanks in advance.

Member Avatar
Member Avatar
+0 forum 2

Hi, I'm new to php (Yii Framework) and SQL (phpMyAdmin). I have problem to ask. ![Capture11.PNG](/attachments/large/4/1e4d9bf0c9a482a977d0ccb0fa19260e.PNG) Currently the three dropdown menu from different table and each have different id called aircraft_type, aircraft_sn and aircraft_reg. I want to use only one table called aircraft. In this table have all three details and only have one id. What I want to do is, when user choose value from aircraft type, the aircraft serial number and aircraft registration will also automatically fill. Calling value from table aircraft only. So far the code I have is: 1)_form.php (project form) <div class="panel panel-bordered panel-success"> <!-- …

Member Avatar
+0 forum 0

The End.