forms

Why is my Controller/Action not responding to a :put?

I am trying to follow the rules and stay RESTful, but I am running into some problems. I set my routes so I am sure it is calling the right action, when I run rake routes this comes up: PUT /admin/settings {:controller=>"admin", :action=>"save_settings"} So I know my route is correct, and in my *views/admin/settings.html.erb" I hav...

Multiple submit button in a form

Hey I am very new to Web Programming. I have been learning PHP from the past few days and I am stuck at one thing. I have a form tag in my code which has two submit buttons to manipulate on the data. Since I can have only one action definition on my form tag, it can lead me to one page only. (Not very sure) Now depending on the button ...

Maximize Form from differient form C#

hi does anyone know how to maximize a form from another formin c# i tried the code below but it wont work Form1 form1 = new Form1(); form1.WindowState = FormWindowState.Maximized; any ideas ...

How should I make a Javascript and Ruby based order form that sends info and uploaded images to an email address?

I am planning on making an order form that has text fields (to gather submitted text based information like names, emails, messages) link fields (to gather submitted links) upload buttons (to gather images from a user's hard drive) I assume I will be using Javascript and Ruby for this but I have a few questions. how would I activa...

How do I make cakePHP's form helper 'create' action use a custom id? Or some other work around...

I'm building a site that requires multiple forms for the same model in varying numbers throughout a single page. These forms belong to an object with an id. Currently, since I can't figure out how to change the form ids, I'm stuck with a hole bunch of duplicate ids. I'm looking for a way to append the object id to the form id so they're...

Most correct way to select option in <select> box

I know there are multiple ways to select a particular option from a using jQuery: $select.val("someValue") $option.attr("selected", "selected") $select[0].selectedIndex = 1 Assuming you have both the index of the option you wish to be selected and its value, what's the most correct way (from the above, or otherwise) to make it selec...

PHP Excel Format instead of form

Is there an API in PHP which allows the user to add records by just filling out an excel-like table instead of having to fill up a usual form-look page. After the user will fill in the fields, the record will auto save the record in the database. I want it to work just like ordinary form with post method in PHP. It will allow the user to...

Input field width and height: how to change them

I've never touched drupal's theming layer before, so I apologize for the basic question. I'm trying to change the default width and height for the input fields used in drupal forms. Is there a generic template that I need to change? or do I have to find everywhere where there's a form, find its template, and change it. Any tips on how ...

Why does adding a hidden text box to a form stop IE refreshing on enter

Hi, I was looking for a fix to stop IE refreshing the page instead of submitting my single line form, when a user hits enter instead of clicking go. I found this solution, which works well, but I was wondering if anyone could explain why it works? The solution I used is to add a hidden text input within the form tags, like this `<fo...

cForms Plugin Post-Processing

I have a cForms II contact form set up. It works perfectly if I just want the results emailed to myself (default behavior). I now have a custom PHP file that will take the POST data from the form and submit it to an external database for me. However, when I set the Alternative Form Action page to this PHP page, clicking the Submit butto...

is possible to write style for browse button?

is possible to make stylish for browse button using CSS & Js ??? Thanks in advance ...

resizable form in visual studio 2005 can only be made bigger, not smaller again

hello, I'm working on an old project from an other developer, and can't get something solved ... I have a form in visual studio 2005 which is resizable. But when I resize at runtime, it only allows me to make it bigger, not smaller. It has nothing to do with minimumsize, because after making it larger, I also can't return to the origina...

Django Button Multiple Actions in one

How can i assign to one Button multiple actions: A Timestamp A href to next page Assign a numerical value depending on where you clicked. In Django. Onclick. How is that possible? in Html in Django Views And the timestamp needs to be recorded at the users browser (when he clicks) and NOT when it is arriving at the server. Thank...

HTML Form: why action can't have get value in it?

When i try the following structure, it does't send id=value <form action="some.php?id=value" method="get"> <input name="name1" value="value1"> <input type="submit"> </form> I know that i can send id=value in hidden field, but it's interesting, why it doesn't allow such structure? Thanks ...

Workaround for too long querystring in IE6, IE7?

I have a form which submits fine in FF, Opera, Safari, Chrome, and also IE8... But it wont submit in IE6, or IE7... I have noticed it is 99% sure that the problem is a too long querystring. I have many many options... Now, changing the method to POST is out of the question here, so don't bother asking about this please... I wonder, is...

Can view a URL through a browser but not with CURL

Hey guys, I ran into an interesting issue today when I was working on an application I'm developing. Hopefully someone knows why this is happening / how to adjust my work flow for it! Background: I'm writing an application that helps students at universities get in touch with each other. The basic workflow is as follows: User ...

What's the best way to update the input names when dynamically adding them to a form?

I'm trynig to come up with a clean and efficient way of handling form input names when dynamically adding more to the POST array. For example, if I have the following form: <fieldset> <input type="text" name="users-0.firstname" /> <input type="text" name="users-0.lastname" /> </fieldset> I then click an 'addmore' button which d...

Editable timetable using Drupal

I'd like to manage a timetable using Drupal 6, there are several pieces of equipment on which an administrator distributes people who get to use the equipment. Essentially I want a table of equipment versus day of the week. The plan shows the occupation of all equipment for the whole week. What makes it more complicated is that the ed...

Detecting if the form field values have been modified

I have a multi-step form which asks the subscriber to check their details before proceeding with the renewal process. What I want to do is check if the form has been modified from its pre-filled values (extracted from a Web Service) and then write it to my own local MySQL database. This should only happen if the values have been modifi...

Disable form elements inside div

I have a problem with my form querystring being too long. I plan on solving this problem by simply disabling all un-used form elements before submit. But I need help on making this js function... You need to know that I have a js-function which shows sub-categories whenever a main-category is chosen. This happens "onChange" on a drop-l...