forms

How to format my form with CSS?

Here is the HTML for my left column: <div id="leftcolumn"> <ul id="mainnavigation"> <li><a href="#">Inicio</a></li> <li><a href="#">Evaluaciones</a></li> <li><a href="#">Docentes</a></li> <li><a href="#">Soporte</a></li> </ul> <div id="loginarea"> Username...

Custom drupal ajax forms based on content type cck

Why hello there Stackoverflow, I have a nutcracker for ya, is there an "good" way to create 100% custom forms or rather just textboxes and have the values sent to an url like so: http://site/drupal/formreciever-content-type , post-sending the values of X textboxes with jQuery for example? Without having to do so much backend work, right...

Submit form in javascript using form name

Hi, I'm dynamically generating forms with hidden input in a webpage using django templates, which should be submitted when clicking on some associated text label. The problem is that I just can't get it to work. {% for tag in tags %} <form name="remove_{{ tag }}" id="{{ tag }}" action="/filter" method="post" accept-charset="utf-8"> ...

How does one output arbitraty text from INSIDE a control class in C# ASP.NET, MVC?

Is it possible to say something to the effect of 'SomeClass.Out.WriteLine("hello world")' and have it actually show up for the browser to render? I ask, because I notice that the HtmlHelper BeginForm implements IDisposible. So at the end of the using block, a closing tag is written to the browser. I am not saying I would use this pr...

MS-Access, Bound Control on Form, Show user text, but record PK for that text

All but the first and last bit here is copied from another poster's question. The topic is MS-Access Forms with Bound Controls. I am new to Access. I appreciate all the 'levels of indirection' it provides for forms, but I can't seem to find an example of what I imagine to be a very, very common task... here is the answer (Thanks, Thomas)...

Form generation on the fly / Dynamic forms / forms generated from models

Has anyone tips with building applications similar too wufoo.com? I am building an app where the logged in user creates forms in a similar manner...what i am wondering is if zend, symfony or yii is best suited for this? I will be collecting tips here for other to see easier. advantages of the frameworks that could help with this: Sym...

fill 2 form one field in common with c#

I need to fill two forms in the same website, my issue are the field because they have the same name, e.g. the password field in both form is pass, so how can i fill both? the code to fill fields I'm using is this: WebBrowser1.Document.GetElementById("pass").SetAttribute("value", stringpassword); thanks ...

form variable + submit button not concatenating with php

UPDATED: Examples added at end as requested: Got a seemingly unique problem with concatenating form variables + the name of the button used to submit. This works: $word="number"; $number=1; myalbum=$word.$number; echoing $myalbum gives "number1". No surprises there. BUT if I POST the form to a php script with the intention of writin...

Which HTML form attack vectors are there?

Hi, I am starting to have a look at HTML form security. So far my research revealed three main attack vectors: Cross-site request forgery (CSRF) Cross-site scripting (XSS) SQL Injection My question is: Are there more attack vectors for HTML forms than these? I am interested in a list of possible attacks through HTML forms. ...

jQuery intercept form submission

I have number of conditions i'd like to check before submitting a form so I've created: $("Step2_UpdateCartForm").submit(function () { if (!procssingEmails) { return true; } else { return false; } And I have a number of events that could result in a form submission so i have something like: function fireU...

using a Django ModelForm doesn't want to work well with a ManyToManyField

Hi, I have a ManyToManyField in a model which uses the 'through' option. Using a Django ModelForm, this seems to be failing giving me a funny error about having to use the model's manager. I want to be able to edit this inline (i think the admin lets me do this) and looked up it on google, but everything to use this Django Inline Forms ...

In symfony 1.4, how can I fetch data from a text file in the 'new template' page?

Hi everyone, I want to read a text file in the 'new template' of a module, so I can retrieve a number in that file, and give it as a field at the moment of saving that register. As an example, in the form I have this fields: name: description: number: The number field is in the text file, and I want to retrieve it before I press the...

jquery-watermark plugin and HTML5 email input type not working correctly

diveintohtml5 says it's okay to start using the email form type. So I am trying it out on one of my forms. I'm using jQuery and a plugin called jquery-watermark. It makes the placeholder element work across browsers. The plugin still works on Firefox 3.6 but on Opera 10.61 and Chrome 6 the placeholder isn't rendered. <script type="text...

making a servlet in netbeans and index.jsp

i am trying to make a servlet in netbeans. It has to be called from an html form and take some data from it. i overwrite doget and dopost putting just some testing outs in them. when i try to run the servlet it only shows a hello word jsp page i found out that this was the index.jsp page that the servlet had by default. How can i make...

Ajaxify + Confirmation Dialog?

I'm using jQuery Ajaxify to ajaxify my forms. It has all the same callbacks as the standard $.ajax function. I'm trying to add in a standard Javascript confirm() dialog before the form gets submitted though. Problem is, as soon as you click the submit button, the ajax request goes through. How do I delay that until after the user makes a...

Radio Buttons "Checked" Attribute Not Working

<label>Do you want to accept American Express?</label> Yes<input id="amex" style="width: 20px;" type='radio' name='Contact0_AmericanExpress' value='1'/> No<input style="width: 20px;" type='radio' name='Contact0_AmericanExpress' class='check' value='0' checked="checked"/> The radio button does not show up as checked by default. I star...

Specify a default selected item for HTML form drop-downs

Typically when you need to select an item by default, you do: <select> <option value="1"> Volvo </option> <option value="2" selected="true"> Saab </option> <option value="3"> Mercedes </option> <option value="4"> Audi </option> </select> Is it possible to get something like t...

Dispose form after closing.

Dear friends I have got the new problem with opening and closing form in C#. My problem is how to dispose the form after closing . here is my code : Program.cs: static class Program { public static Timer timer; [STAThread] static void Main() { Application.EnableVisualStyles(); Application.SetCompati...

Insert User Data to Database with INSERT statement

From a user form: I am trying to insert the following data: 1) First Name 2) Last Name 3) Major 4) Graduation Year I am able to connect to the database, and select the database I need--but I am unable to insert the data from the form. I am able to create records, but the data is not being saved to the database. Basically, right now I'm ...

Select boxes by country and region

How can I customise a form to only show the relevant countries when selecting a region in my form below? This is my code <form id="sobi2Search" name="sobi2Search" action="index.php" method="get"><input type="hidden" value="com_sobi2" name="option"> <input type="hidden" value="search" name="sobi2Task"> <input type="hidden" v...