Validation of hidden input fields

I'm trying to validate a phone number input field in a form. I'm using intl-tel-input (which is great, BTW) to get the extension and full number, then pass the value to a hidden field so I can send the form data to the server. This is the displayed f

C # - How to use variables in other functions

I am trying to use the variable rand from the Rnd function within the BtnRed_Click function. The return does not do anything. And if I change the parameters for the Rnd function I get an error. Here's my code. namespace ColourPick_EDP2 { public parti

Django submit the form without updating the page

I'm using Django-Angular and trying to post a form and obtain data in back-end..I'm able to achieve this but found that the page is reloading while saving the form. How can we achieve the same without page render? def home(request): if 'appl

HTML entry for many different options

I am making an HTML form with multiple inputs. I am using mainly select inputs (as below), <select> <option></option> <option></option> </select> and also some radio buttons. I each input represents a different category

Message not received from php form check box

I'm posting from the HTML code shown in this jsfiddle to the PHP page for which the code is below. The issue is that the array $_POST['selectedpost'] isn't being received. That's the array containing which checkboxes were ticked. In the js fiddle I a

Show the warning area when submitting the form

So I have these two pages: pageOne.php and pageTwo.php.The form is in pageOne.php: <form method="post" action="pageTwo.php"> .... </form> and doing all the data collection-validation-insertion and sending out mails in pageT

Form in the JQuery menu

I have a form which has two hidden parameters that I want to pass to the function LoadView <form name="frm1" action="http://localhost/tddd27/index.php/AddProduct/LoadView"> <input type="text" name="ID" valu

Form in the table

I'm a sophomore in high school and I'm taking web design. I taught myself HTML and basic CSS over the summer. This was beneficial because my web deign teacher knows nothing about HTML, CSS, or JavaScript. We have to create a personal website and she

PHP quiz with results on the screen

I am trying to create a simple quiz based on a tutorial I found. Unfortunately, this is making me spin my wheels and the answer is probably pretty simple. I got this working perfectly. I would like to cha

Auto height of the text box for multiple text boxes

Background: I'm making a facebook wall-alike page, which will have many posts and you should be able to comment every post. And these textboxes, where you post type your comment in, should resize as in Facebook. I have this code so far. It works but

Dynamic radio buttons, different with unlimited names

I am doing a form that displays the questions and answers in a database and now I need to save the answers marked by the user. I need a name for each RadioButton or select dropdown. PROBLEM: I combine php and html and i don't know how to pass the rad

C # database problem

Could somebody tell me why this isn't adding the values to the database. The form runs fine and doesn't return any errors. private void button1_Click(object sender, EventArgs e) { SqlConnection connection = new SqlConnection(); SqlCommand command = n

Django empty error messages

I have an ajax login view. I can log in ok but when I log in incorrectly my json returns: {"errors": {}} My view is as follows: def ajaxlogin(request): from forms import LoginForm form = LoginForm(request.POST) logged_in = False username = reque

form will not send data in ie8

I have a form on my page, with one text input and one submit input, that sends info to a php script. Users can submit the form either by pressing 'enter' on their keyboard, or clicking the submit button. In IE9 and ever other browser, the user can hi

Avoid using isset () on the form?

When you have many inputs (select/textarea/input), it will look real messy when you include isset() For example: <input id="firstname" type="text" name="firstname" value="<?php echo (isset($_POST['firstname']) ? $_

Sending 2 forms at a time

I must submit two forms at once and I don't want javascript. So I think I can post the form to myself, do my work and then post it on to the third-party payment provider. This is to make the order appear in our datastore. The manual says how to submi

Can I submit a value and submit a form from the same hyperlink?

I am trying to create a list of links that would make up the elements of a form (will be used as a search feature). Basically, each link in the list represents a search category, so as users click on a link, their search results will be filtered. I w

How to set a foreign key to null? (Symfony)

I have a form with an input which is optionnal but I can't valid the form if the user don't fill it because it's a foreign key and Doctrine shows me an error. SQLSTATE[HY000]: General error: 1452 Cannot add or update a child row: a foreign key constr

How to pass a parameter to a servlet

How do I pass a parameter from a page's useBean in JSP to a servlet in Java? I have some data in a form that gets passed no problem with a submit button, but no way to send anything else. Please help? Here is my code: <input name = "deleteGameButt