form

post html form fields to google map and get back result page

Hi, I'm not an expert but i know a little about HTML forms, here is my problem i want to create a simple html page with form for my customers to enter a gps values to maps.google.com and get back the result page embedded in the same html here is the exact format of my string as an example : 32 06 12.66N, 20 12 22.65E notes that th...

Submitting a jQuery ajax form with two submit buttons

I have a form that looks like this: <form action="/vote/" method="post" class="vote_form"> <input type="hidden" name="question_id" value="10" /> <input type="image" src="vote_down.png" class="vote_down" name="submit" value="down" /> <input type="image" src="vote_up.png" class="vote_up" name="submit" value="up" /> </form> W...

Positioning form's inputs with em unit.

I was looking for way to set position for inputs other than using tables. I googled this: Applying CSS to forms and I've made a test site: korran.ovh.org/test/test.html Text-type inputs looks good, but submit is moved a little to the left. Interesting thing is that if I set font-size: 10pt it looks perfect. But with default 12pt it's mo...

Merging File and Post data in PHP

At work I've been dealing with some complex forms (publish pages of Symphony) that contain multiple image upload fields. I need a way to quickly merge $_FILES with $_POST, unfortunately you cannot simply merge the two with array_merge because they don't follow the same structure. Basically if you have $_POST[a][b] it would be $_FILES[a]...

Update Personal Details PHP Script

I have a page that displays a user's current personal information and a handler that cycles through the form elements, filtering them through to the relevant mysql query. There are two tables, one that contains the master data, e.g. username, email, password hash, and one that has address data. However, the script doesn't work and I can...

Getting uniform layout in both IE7 & IE8 with form elements

It would seem that IE7 puts an extra 1px of spacing above and beneath form elements. IE8, FF3.5, Chrome 2 & Opera 9.5 correctly renders these elements without the spacing. What I want though, is for the display to be the same in IE7, so is there some kind of workaround to get IE7 to correctly render the elements? It doesn't appear to m...

Facebook form post data not present on backend

I am attempting to post form data to my app using Facebook. My form is integrated with a dialog and I am using form.submit() to submit the form. Please see my code. The post data does not appear on the backend (e.g. load-cargo-radio, city-id, train-id), but the fb_sig* data does. Does anyone know if there are any caveats regarding postin...

Get/Set Checkbox and Radio Button values using Prototype

Prototype is great, but with the 1.6.1 release, the library still doesn't allow getting/setting of grouped inputs (checkboxes and radio buttons.) I'd like a way to get an array of selected values with $F($("form").checkboxes). I'd like to be able to set those checkboxes to an array of values, on the flip side. Ideas? ...

AJAX and/or JQUERY form POST?

Hi Masters Of Web Programming, here I come with another stupid question, hoping someone will answer me. I'm not very good in AJAX programming but due some situations I must build a completely non-refreshable site. Next question is how to make this form to send a request and return the result, WITHOUT reload of current page? <?PHP f...

PHP - Using a drop down list to change site theme

I have a drop down list where users can select a theme for the site. The only problem is, I'm not quite sure how to properly load the theme once they press "Apply". I am new to PHP. I know if I use GET, it will pass the variables through a the current page and add them to the end of the URL. I would really like to avoid that. So, I g...

Logic behind validating form info with PHP

Im trying my first form validation with PHP. I need some guidance with the logic. I have purchase.php (which has the form) and review-purchase.php(which sets SESSION variables and displays the user data inputted) If any of the fields fail validation I don't want the user to get to review-purchase.php Should I be sending the user to t...

Do all browser's treat enter (key 13) the same inside form?

I have a form with multiple submit buttons, each of which is relevant to how the user wants the data saved and/or loaded. The problem is (or was) that if a user pressed enter on the last (or any other) input within the form, the submit button that seemed to be called was the "load saved formed" which is at the top of the form. All attem...

Is it acceptable to use tables for forms? Or is it still more correct to use divs?

I'm wondering whether it's acceptable to use tables for forms. Strictly speaking, name/value pairs are tabular data, aren't they? And a form is just a user customisable set of name/value pairs. So is it right to use tables in this case? Or should I use divs styled with CSS? ...

Django how to save a custom formset

I've written the following custom formset, but for the life of me I don't know how to save the form. I've searched the Django docs and done extensive searches, but no one solution works. Lots of rabbit holes, but no meat ;-) Can someone point me in the right direction? // views.py partial // @login_required def add_stats(request, grou...

how to refer a textbox inside body of html page in a javascript if textbox is not part of any form?

i have coded a header file which contains a input textbox for search.this header is include in body tag of a jsp page as shown below. <body> <include src="header.ssi"> <form> </form> onclick of button i header file i am running a javascript function. i need to refer to this textbox in javascript function. ...

PHP - Upload 6 Images (MAX 1mb per file)

Hi I was wondering what the best way to send 6 'file' inputs to a php page would be... and how to process them, i used this website to understand uploading one file PHP Tutorial - File Uplaod Also, i want to name each of the 6 images with a time stamp for example below... 00000000 00000001 00000002 00000003 00000004 00000005 Basical...

How to remove get param on form submit?

Can you advice me how to remove get parameter (input text) without removing the value of the input or disabling it? Is this possible at all? ...

Data type used in action forms

Hi can somebody explain that if i declare variables of other types (except string) in the form beans what problems I might face ? ...

How to write a php/htaccess script to redirect form variables to another website

Hey here is my problem : i made a flash and i can`t change it no mather what. That flash had a form that was sending data to my subdomain.. i had to remove the subdomain and i got a new website, the problem is this : how do i redirect the form data from the old site to the new one? In the flash i had the form send the data to : subdomain...

How to post a form with many fields with jQuery?

Though $.ajax() can be used to do ajax things, I don't think its fit for posting values of a big form. How would you post a big form (many fields) without entering all them by hand? ...