forms

php mysql parallel array checkboxes

I have an array of checkboxes that I edit at once to set up a 'tinyint' field. the problem comes in when i uncheck the checkbox and post the vales to mysql. since it posts an array of checkboxes and another parallel array of values to edit, unchecking a checkbox results in the 0 value been ignored by PHP_POST and hence the checkbox array...

Parsing the response from a jQuery ajax form post

I am successfully posting a form via ajax, using the following code; $.post( "Page.do?source=ajax", $("#Form").serialize(), function(data){ } The data response that comes back can be alert'd. I can see that it is the HTML of the entire form, having been submitted. But, I am having trouble ...

How to open a form in a determined tab? vb .net

I have a form with a tabcontrol and 4 tabs. I want to open a form with showdialog in a predetermined tab. I've tried OptionsForm.OPTS_TabControl1.SelectTab(1) OptionsForm.OPTS_TabControl1.ShowDialog() but it didn't work. Any help? thanks ...

Form Journey Tracking using google analytics

Hi there, Is there anyway, using google analytics, to track a user's journey/selections through a long form so I can see where they drop off? I've created a 'contact us' form which starts with drop down menu which requires the user to make a choice i.e. apply for job, apply for funding etc. and then each option requires the user to fil...

Contact Form ASP.net

This is my first time creating a from in ASP.NET I am following a tutorial here This is the error: Line 23: output += "<p>Groupe: " + Request.Form["c_Groupe"].ToString() + ".</p>"; Line 24: output += "<p>Numéro de téléphone: " + Request.Form["c_Tel"].ToString() + ".</p>"; Line 25: output += "<p>J'aimerais être bénévol...

sfWidgetFormChoice rendered as an unordered list

Hello. I'm using symfony 1.4.3 Is there some way to render a sfWidgetFormChoice as an unordered list? In the API there is an option called 'renderer_class' but I can't find any documentation or example about it. Thanks! ...

With a jquery modular dialog how do I stop the form values from persisting?

(Citing source at: http://jqueryui.com/demos/dialog/#modal-form) As an example, this works great but each time the form is subsequently opened the user entered values remain. How can I stop this behavior? (the form will be used multiple times on the same page. <style type="text/css"> body { font-size: 62.5%; } label...

jQuery ajax link, returned data includes a from that wont submit

Hi everyone, I have a problem with the returned data from a ajax request. Basically when I click on a link it runs a ajax request to load some html into a div, that part is working fine the problem comes when the data has been loaded. Part of the html loaded is a form, this form works fine if I load the page directly but when it is loa...

How much sanatization does this form input need?

Is $username = $_POST['username']; $sanitizedUsername = strip_tags(stripcslashes($username)); enough to prevent malacious sql injections and other types of attacks. If not what else should I use? P.S. I want to allow users to choose usernames and passwords that contain alphanumeric, space and symbol characters (except those like quo...

MS Access 2003 - Save button enabling on form open on different tabs

I have a tab control on a form, and a couple different tabs have save buttons on them. Once the user saves data (via SQL statements in VBA), I set the .enabled = false so that they cannot use this button again until moving to a brand new record (which is a button click on the overall form). so when my form open i was going to reference ...

How to preserve line breaks in the database on user submitted text?

Users enter text through a text area element, much like we enter questions on StackOverflow. What's the best way to preserve the line spacing in the database so that it can be reproduced on the front end? The idea is the text should appear with the same line breaks and blank lines as entered originally by the user. ...

onsubmit() does not work.

Here is something that I find disturbing. I created a small form, and I'm using AJAX to validate for me. I have a javascript function authenticate() that works sometimes. <form method="post" action="" id="login_form" onsubmit="authenticate()";> // various inputs <input type="button" onclick="authenticate()" value="Log In"> </form> ...

codeigniter and form action trailing / issue??

Hi, I am having a bit of an issue with the way CI is dealing with /. In a regular form i notice that the following form action didn't work action="mydomain.com/ci-controller/login/" but this one does work action="mydomain.com/ci-controller/login" Strange but he it worked. But now i need this from a iframe, i the iframe i have a logi...

[PHP] Multi-upload

Hello there, I am trying to upload 2 files, the first one is a flash (.swf) file and the second a .png. At the moment, I would have no problem making 2 different php upload file, with 2 different forms, but Im sure there can be a way to make that all together. I am not really experimented with PHP, but Im trying to learn. At the mome...

Form validation does'nt work under IE, fine with FF

I'm trying to apply validation to a form using following code : $("#paiement").validate({ errorClass: "invalid", validClass: "success", rules: { referenceTypeComplementBancaire: "required", banque: { required: function(nomBanque){ return $('input...

Rails + MongoMapper + EmbeddedDocument form help

I am working on a pretty simple web application (famous last words) and am working with Rails 2.3.5 + MongoMapper 0.7.2 and using embedded documents. I have two questions to ask: First, are there any example applications out there using Rails + MongoMapper + EmbeddedDocument? Preferably on GitHub or some other similar site so that I can...

extending spring form tag library attributes

I'm using Spring's form tag library in a Spring MVC application that I am developing. The company I am working for has implemented some company-wide policies based on the definition of custom attributes for certain tags. For instance, by default (though the inclusion of a standard javascript file) all tags have their values automaticall...

Simplest way to handle and display errors in a Python Pylons controller without a helper class

I have a class User() that throw exceptions when attributes are incorrectly set. I am currently passing the exceptions from the models through the controller to the templates by essentially catching exceptions two times for each variable. Is this a correct way of doing it? Is there a better (but still simple) way? I prefer not to u...

Problem with JS Selectbox Function

I have a selectbox with three options. When a user selects one of the three options, I want a specific div to appear below it. I am trying to write the code that dictates which specific box is to appear when each of the three options is selected. So far, I have only worked on the code that pertains to the first option. However, whenever ...

Edit form not being instantiated

I have two models like this: class OptionsAndFeatures(models.Model): options = models.TextField(blank=True, null=True) entertainment = models.TextField(blank=True, null=True) seats_trim = models.TextField(blank=True, null=True) convenience = models.TextField(blank=True, null=True) body_exterior = models.TextField(blank=Tr...