Problem I need feedback on this code regarding security issues. <?php if(!isset($_POST[‘submit’])) { //This page should not be accessed directly. […]
Tag: form
Parsing multipart/form-data in php for PUT requests
Problem I have recently found that I needed to be able to parse multipart/form-data for PUT requests made to my […]
jQuery handler for closing a login box
Problem I’m sure there’s a better more ‘jQuery’ like way of writing this. In particular the selector $(this).closest(‘div.login-box’) being in […]
Handler for an Android form to calculate a cross product
Problem Button crossButton = (Button) findViewById(R.id.crossButton); crossButton.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { if (!x1.getText().toString().equals(“”)) { if (!x2.getText().toString().equals(“”)) […]
Form with a country list statically or dynamically generated
Problem I want to create a form with a country drop down list so I can just google and get […]
Live updating headers from form input with React.JS
Problem I am teaching myself React.js from Facebook with small projects. For this one, I want to know if this […]
Form validator class and child classes
Problem I am creating a form class for validating form data, and would like some advice on how to refactor […]
Is this contact form code breaking any rules?
Problem Can you please review my PHP script below? It is for a contact form. Am I breaking any rules? […]
Friends edit form
Problem I have a list of friends and new friends are added via a form. When you click on a […]
Control of empty fields in a form via JavaScript [closed]
Problem Closed. This question is off-topic. It is not currently accepting answers. Questions must involve real code that you own […]