forms

How to use PHP input array with my dynamic form and PHP emailer script?

Hi, i have been struggling for a while now trying to finish this, i am new to a lot of this and although i have had some tips i think i am getting myself more lost. So i have stripped the code to a point where it almost works. DEMO IS HERE: http://designsbythom.com/meterread/test.html I have a form a customer fills out to submit printe...

iPhone UI Design question - Best way to design forms?

Hi, I want to design an app that needs user to input few things like start date, end date, bunch of other options and some text comments for which I am planning to use pickers to select the data that will slide up modally. I will need to move the view up and down to make sure that the element being filled stays in focus when the pickers...

jQuery: form not submitting with $("#id").submit(), but will submit with a 'submit' button?

<form method="post" action="load_statements.php?action=load" id="loadForm" enctype="multipart/form-data"> that is my form, which looks fine to me. in that form, i put this button: <input type="button" name="submit" id="submit" value="Submit" onclick="confirmSubmit()" class="smallGreenButton" /> here is th...

Styling a <select> menu

I have a select menu like this: <select name="mySelect"> <option value="250" selected="selected">250</option> <option value="500">500</option> <option value="1000">1000</option> <option value="1500">1500</option> </select> It comes out looking different depending on OS and I would like it to have a different background...

Form loses focus after clicking button

when clicking on the start button in the code below, the form seems to lose focus and I need to click the stop button twice to stop the count. (First click to activate the form, second to click the button) Can someone please explain this behavior or offer a better alternative? Public Class Form1 Dim testrunning As Boolean Priv...

How to customize TDO miniforms in wordpress

Is there any way to post TDO miniform content to different post types. Currently its allowing only to post to categories. Is there any hack to post to content types using TDO mini form. Also I can't see the contents posted through TDO Mini form in the site. I can see the fields and content while editing the post but in the site, only the...

How do I get rid of this? (Looks like the form version of mouse trails)

I have cursor shaped forms (functioning as actual cursors). Whenever I drag it makes what looks like mouse trails. The red and white stuff. See the little red arrow on the upper heart and the little white arrow on the lowest heart? Those are my cursor shaped forms, it's a picture on a tiny form (I cut regions so that the form will be sha...

what is the best suggested way to design a form having more than 20 fields?

I am having a form having around 20-25 fields. I have put all these fields on one page and a submit button to complete my functionlaity. But i am not happy with the length of page and feel like users will be demotivated using this page can somebody help me with suggestions? ...

Fieldset implementation in Symfony forms

Hello, on the project I am writing with Symfony, there will be fieldsets in forms very often, so I would like to create a mechanism so that I can group fields by fieldsets and still use the __toString() method of my forms. On this page, I read about the sfWidgetFormSchema, and how it could be considered as a widget, which enables to nest...

File Upload Control and GWT Look and Feel

Hello I'm writing my first GWT project. I have a form with label, file upload control and upload button but they look awful and too different in various web browsers. Also button from file upload control doesn't have the same style like GWT button control. And the other problem is that in Chrome Button for file choose is on the left?!? ...

ActionController::InvalidAuthenticityToken ocurring only in Firefox and in production mode on apache+passenger

Hello, With one of my forms, the ActionController::InvalidAuthenticityToken is occurring after the form is sent to the proper controllers "create" method. The thing is that there actually is a valid authenticity token included and the error only occurs in Firefox. Other browsers work fine. I tried to skip the verification of the auth t...

Posting links to search form?

Hi, I have a jump list that works fine. Basically the user selects an option from the drop down and the selection is posted to a search form. Here is the code: <form id="brandForm" name="brandForm" method="post" action="http://www.domain.com/search.php"&gt; <select name="stext" id="stext" onchange="document.brandForm.submit()"> <...

If statement in javascript forms

Hello Im fairly new to javascript but have some experience in HTML. I am trying to create a form which allows me to select an option from the drop down menu, which further expands the form (showing new fields on the same page) depending on the option selected from the drop down menu. I figured I need some sort of if statement to achieve...

Token Method on Forms, Double Submit Issue

I've spent weeks working on double-submit protection on my forms. Straightup, the session method of storing tokens doesn't work. Sessions work fine for a refresh of the page or someone going back through their history... but the classic double submit by clicking the button numerous times cannot be prevented using sessions. I'm thi...

How to get form input array into PHP array

I have a form like the one below which is posted to contacts.php, and the user can dynamically add more with jquery. <input type="text" name="name[]" /> <input type="text" name="email[]" /> <input type="text" name="name[]" /> <input type="text" name="email[]" /> <input type="text" name="name[]" /> <input type="text" name="email[]" /> ...

Django form don't show specific inputs

Say, I've got a model like this: class Fleet(models.Model): user = models.ForeignKey(User) [...] ship1 = models.IntegerField(default=0) ship2 = models.IntegerField(default=0) ship3 = models.IntegerField(default=0) ship4 = models.IntegerField(default=0) And a form: class sendFleet(forms.Form): [...] shi...

PHP array echo problem

Sorry i am a bit of a newbie. I have a form with some inputs which are arrays and some which are not <input type="text" name="name" value="name1111" /> <input type="text" name="email" value="email1111" /> <input type="text" name="model[]" value="model1111" /> <input type="text" name="serial[]" value="serial1111" /> <input type="text" ...

Trying to write to a MySQL database with a PHP form

I'm trying to do a simple write to database with an HTML form, using PHP. I've run the SQL query in the database and it works perfectly. However, using the form doesn't work. I'm not sure why. Any help? The user/pass/db name are all correct. <?php if(isset($_POST['submit'])) { $con = mysql_connect("localhost","delives0_ideas","ideas")...

ASP.NET form name

From what I understand, the id of the master on an ASP.NET page is "aspnetForm". I noticed today that for some reason in one of our pages it's now "form1". What would cause this change? Where should I look for the root cause of this naming change? We've got a lot of JavaScript variables that (sign) reference "aspnetForm" that are now br...

Can I use JavaScript on one page to fill out a form on another server?

Sorry if this is a newbie question, but I've spent several hours on this without success. I've got a PHP script that generates some text I want to submit to an external Web site's form. Is it possible to use JavaScript code on one page to open a page on another server and then add text to that second page's html form from the code on the...