forms

HTML form submit how to: File Upload and email

心不动则不痛 提交于 2021-01-28 18:22:38
问题 I have an HTML form that have several different fields and drop down menus. The form has several different text fields, a couple drop down menus, and a file upload. Once the form is submitted it is sent to me via email. Below is the HTML and the PHP submit. I can't seem to figure out how to get the file to upload and then be sent to me as an email attachment. I would appreciate any help. Thanks The html looks like this ` <label class="label" for="name">Name:</label> <input id="name" class=

Cross-platform document scanner functionality in Xamarin Forms App

£可爱£侵袭症+ 提交于 2021-01-28 12:22:15
问题 As part of an Cross-platform App (Xamarin Forms) I'm developing I want a functionality that allows the user to scan a document. Are for Xamarin Forms App components (libraries) available that can be used? I know, Scanbot Scanner SDK can be used for this, but that is quite expensive. Are there no alternatives available? What's the best way to implement such a functionality with a limited amount of invested resourcers? 回答1: I found this FREE solution: Imaging-Library It takes a photo file,

Why does mobile Safari cut off the text in an input form?

回眸只為那壹抹淺笑 提交于 2021-01-28 11:57:26
问题 Why does an input form on mobile Safari have more padding inside it and push the text to the right so it gets cut off? I set the width of the input field at 20px which is plenty for the desktop web but on mobile it needs >26px. ^ Desktop Safari Web Input Form ^ ^ Mobile iOS Safari Input Form ^ CSS .phone-input { width: 20px; text-align: center; font-size: 16px !important; height: 1.75em; //border: 0; outline: 0; background: transparent; } HTML '<div class="phone-field">'+ '(<input class=

trying to auto submit form after text input

爷,独闯天下 提交于 2021-01-28 11:51:44
问题 Here is how the form is supposed to execute: <script> $(document).ready(function(){ $("#submit").click(function(){ //access token stuff var token = $("#link_input").val(); ... etc</script> . I am trying to auto submit this info once it exceeds 10 characters. Normally you fill out the text area in the input field and you click submit. Upon clicking the submit button the JS validates the text in the input box and if it's valid it executes. How can I auto-submit the text in the input box without

Laravel Insert multiple records from one form

删除回忆录丶 提交于 2021-01-28 11:43:49
问题 I'm working on a task to add extra to items, I have a select field to add item_id and save it to extras table in the database. I'm trying to add more than 1 items to save my time instead of adding same extra to another items. I'll share the current code work for one item ONLY : View: {!! Form::select('food_id', $food, null, ['class' => 'select2 form-control']) !!} my try do make it insert multiple ids: {!! Form::select('food_id[]', $food, null, ['class' => 'select2 form-control', 'multiple'=>

Comparing form input values

谁说胖子不能爱 提交于 2021-01-28 11:40:35
问题 I know there are a few threads on this topic, and in fact I got my code from one such thread, but I just can't seem to get it to run. I'm trying to compare two input boxes in an HTML form using javascript. Here is my JS: <script> function checkform(form1) { if(form1.password.value != form1.passwordConfirm.value) { alert("Passwords must be the same"); form1.password.focus(); return true; } else {return false;} } </script> Here is the HTML: <!Doctype html> <script type="C:/wamp/www/Table/" src=

Radio button selection issue when the back button is pressed in Chrome

泪湿孤枕 提交于 2021-01-28 11:12:37
问题 I have 16 radio buttons that are part of two questions for a survey ( 8 buttons per question). When both questions have been answered, the php redirects to the next page which is identical, and so on and so forth. When the back button is pressed in the browser, I expected both previous answers to still be checked . In Chrome, one previous answer out of two always remains checked . In Safari, both previous answers remain checked, which is what I expected. Its not a huge problem, but it would

How do i change/update validation of question (item) in google form with apps scripts

心不动则不痛 提交于 2021-01-28 10:51:53
问题 I have already try to update text validation for my class with google apps scripts but it say "textItem.setValidation is not a function". Please help me function setPass() { var form = FormApp.openById('Google Form ID'); var textItem = form.getItemById(Question ID); var textValidation = FormApp.createTextValidation() .requireNumberEqualTo(22111) .build(); textItem.setValidation(textValidation) 回答1: You are very close to update the question, you only need to add the method .asTextItem() after

while loop result at table, sends first row when submit form in php

北城余情 提交于 2021-01-28 10:06:48
问题 1.fetch user data and display in tabular fashion <?php while($row=mysqli_fetch_assoc($rResultSet)) { ?> <td><?php echo $row['id']?></td> <td><?php echo $row['name']?></td> <td><?php echo $row['user_role']?></td> <td><?php echo $row['start_date']?></td> <td> <form id='euser' action='edituser.php' method='post'> <input type="hidden" name="id" value="<?php echo $row['id']?>"> <input type="hidden" name="type" value="edituser"> <a href="javascript: document.getElementById('euser').submit();">Edit<

while loop result at table, sends first row when submit form in php

旧时模样 提交于 2021-01-28 10:05:19
问题 1.fetch user data and display in tabular fashion <?php while($row=mysqli_fetch_assoc($rResultSet)) { ?> <td><?php echo $row['id']?></td> <td><?php echo $row['name']?></td> <td><?php echo $row['user_role']?></td> <td><?php echo $row['start_date']?></td> <td> <form id='euser' action='edituser.php' method='post'> <input type="hidden" name="id" value="<?php echo $row['id']?>"> <input type="hidden" name="type" value="edituser"> <a href="javascript: document.getElementById('euser').submit();">Edit<