forms

Good design and flow for PHP - retain form values after submit

I've been searching for this topic on SO and it's quite a headache not finding one. I had developed a website for some time already and found that the current problem is that after postback, if the submission has any error and the user is redirect back to the form, the form values are all gone. Is there a good way/flow/design to implem...

forms in ruby on rails, passing variables between one form to another

Hi, I'm attempting to pass variables between forms and unfortunately i'm not managing in my index.html.erb, i have a text field named SearchInput and i would like to pass this variable to the next form search.html.erb so that i may populate some data accordingly. How may i go about this please? In my index.html.erb i have the following...

WPF/C# Add new style pop up form

Quick question: I have a very busy form going on that I have developed for information about say book records. I want to design an 'add new book form' that is essentially a pop up to input the info. What is the best way to do this? Use a Usercontrol that is called on a button click or menu click? an entire new form? Have seen this type...

problem with if statement in Ruby on rails

I know this is probably rather trivial but i have had a lookt at previous questions and i've tried them but they still issued an error unfortunately :s My issue is the following, i have an html.erb file and i want a certain body text to be display given a condition or another if it is false i have <% if [email protected] do %> more cod...

Sample N Tier Windows Forms Application - C#.NET

Hi, I am new to .NET Windows Forms Applications. Would you please let me know if there is any sample ’N Tier Windows Forms Application’ built on C#.NET so that I could go through it and understand the concepts? It would be of great help to me. Many thanks. Regards, Reshma. ...

Windows mobile program without form

Is there a way to have a windows mobile app without a form? I'm writing a small program which is intercepting SMS messages, but I don't want the program to pop up every time it receives a message (which it does right now). any way to have the sms processed in the background instead of popping up the window? ...

How do I add an invisible AJAX submit on my form triggered by input field updates, while also preserving the natural submit?

Greetings kind community of wise developers !! It's my first time writing and I've looked around but alas, am stuck and need some assistance. I would be very grateful to any kind souls who can help. My form needs to do 2 things : 1) Behave like a normal form, and submit rows of Product names, unit prices and quantities, when the Submit...

When my C# form crashes it tries to create a new instance of itself

Hi, I do some rather long winded things with a forms application using arrays and sometimes I address it wrongly during development, instead of an obvious error or a crash the whole application restarts and tries to run: Application.Run(new SplashForm()); Why does this happen? It makes debugging very painful! Thanks ...

drag drop mysql web form builder

Hi, I would like to have a tool with which I can easily develop(dragNdrop) front-end for mysql table and publish it to web. I am not sure whether I can try oracle forms, as my database is MySQL. Even if I can use Oracle forms to connect to MySQL, I would like to know any other third party tool which can do the job easily & quickly. Th...

Adding Data To An Input Field

I'm trying to add a search box to my page that will direct users to the search result page on a different site. I have the action and all of the other required data in hidden fields, to ensure it's posting correctly. The problem is that they tack on extra data to the search term, making it an advanced search type of field. So instead of...

Text Input Field CSS Styling

I have a text input field that has some sample text in a light gray font that I'm clearing when the user clicks to type in the field. When that happens I'd like to also change the font color to black so it's easier for the user to read what they are typing. Here is what I'm using so far: <input type="text" name="q" value="Enter keywords...

using rails to upload things to s3 with fancyupload

Hi everyone. I've been trying to follow this tutorial to let my users upload a bunch of mp3s at once and see the progress. http://www.railstoolkit.com/posts/uploading-files-directly-to-amazon-s3-using-fancyupload I implemented it pretty much more or lese exactly, but I removed some of the things from the policy file, so there's only [...

IE8 - Form within a hidden div, return key no longer works.

I have a login form that resides within a div with display: none; I then fade in the form using jquery but the Enter/Return key no longer submits the form. If I change the display to block, it works fine. This problem is IE only. Any ideas? Here's an example code that doesn't work; <div id='formdiv' style='display: none;'> <form id='l...

How to disable a form element in symfony?

I am using a Select element, in form 'country' =>new sfWidgetFormChoice(array('choices' => CountryPeer::getAllCountry())), 'city' =>new sfWidgetFormChoice(array('choices' => CityPeer::getAllCity())), i want that city element to be disabled, at the first time when the page loads. and on selection of country the city element will be en...

virtual model and form_for (or formtastic)

Hi, all. Sometimes we need form without model creation - for example search field or email, where should be send some instructions. What is the best way to create this forms? Can i create virtual model or something like this? I'd like to use formtastic, but not form_tag. ...

Strange x & y POST values being sent in form

What are these x & y values that are being sent back with seemingly random values? After submitting my form, I output the _POST array using print_r() to make sure my form is being submitted properly. Array ( [user] => Richard Testani [pass] => sdf [client] => Kim Ronemus Design [api] => 3425yrt [email] => [email protected] ...

jQuery form zip code to state function

I'm trying to convert a preexisting javascript function into a jQuery function. The function comes from http://javascript.internet.com/forms/zip-to-state.html and aims to convert a user-entered zip code into a state. I'm using jQuery 1.3.2, with all the necessary plugins, but I'm not very familiar with jQuery syntax and how to convert th...

jQuery disable form element when checkbox is checked

I have a complicated jQuery form and I want to disable several form elements if a certain checkbox is checked. I'm using jQuery 1.3.2, and all the relevant plugins. What am I doing wrong here? Thanks, Dakota Here is my HTML: <li id="form-item-15" class="form-item"> <div class='element-container'> <select id="hou...

Google Analytics - can it collect form data?

Simple scenario: I have a signup form, with user name, password, email address, may be credit card number. At the bottom of the page, I implement the Google Analytics code. when user clicks submit, it goes to a page wihtout google analytics. question is.. can GA get the data (user naem, password..email..etc) in the first form after use...

Visual Studio C# form missing components

My lab partner and I are working on a school project in Visual Studio 2008 in C#. He emailed me the latest version of the project. When I open it, some, but not all, forms that I previously created are now missing all the components that were added to them. However, when I run the project, the components are there and work. Everythin...