form

How pass data to a form inside jquery UI dialog modal windows?

Hi all, I'm trying to use the jquery UI dialog component to display a form; which I successfully did. However I'm at lost on how to retrieve data to this form inside the dialog window. Is it possible? The example shown on jquery website only shows static messages. ...

JavaScript OnBlur event prevents HTML form from being submitted

Consider the following form: <form action="/a" method="post"> <input name="x" type="text" onblur="myonblur(e)" /> <input name="y" type="text" /> <input name="submit" type="submit" value="Submit" /> </form> When focus is on element with name "x" and user presses submit button, onblur event fires but form is NOT submitted. ...

Why are there extra parameters x and y on my GET request?

When I hit the submit image I get some extra parameters in the GET request: main.php?selected=user_manager_main&mode=set_active&set_this_id=13&x=4&y=7 Please note the x and y at the end. I certainly did not define the x and y at the end. The values seem to be random. Here is the form code: echo '<form action ="main.php" method="get">...

jQuery: How to store form values in data() object?

Is there an easy way to store form data in a data() object after submit? Suppose this is my form: <form id='myform'> <input type='text' name='bar' value='lorem'/> <input type='text name='foo' value='ipsum'/> </form> After submit the data should be stored like this: $("#myform").data('bar','lorem'); $("#myform").data('foo','ipsum'); ...

round corners and color border on html form elements

how can i make cool checkbox and selectbox elements in html form , that work in IE too ? ...

Do different browsers (Firefox/Safari/IE/Opera) have limits on the form elements name attributes?

Do different browsers (Firefox/Safari/IE/Opera) have different limits on the length of the "name" attribute of form elements? <input name='a012345678901234567890123456789012345678901234567890123456789 ...'> ...

Event to close form

In the simulation of a lan messenger in c# I have created a thread that listens to broadcast notifications from remote hosts on lan. In order to listen to the broadcast messages I am calling the sleep function and once again restarting execution of the thread. The problem with this is that when I close my form this thread continues to ru...

Drupal 6: Altering a CCK form on a page created by the menu system

Hello, I'm a drupal newbie (but experienced with PHP). I've created some functions to display pages and mapped them onto urls using menu functions. In one of these functions, I'd like to grab a form for a CCK content type, have my way with it, and spit it out onto a template. So I have a function projectadmin_create_page(), which gra...

Why does my form value not appear in $_REQUEST?

I have this code from an HTML form: <select name="history12"> <option value="Gov/Econ">Government &amp; Economics</option> <option value="AP Gov/Econ">AP Government &amp; Economics</option> </select> ...and this code, in a mailer form: $history12 = $_REQUEST['history12'] ; However, when I try to echo() $history12, it always...

How can I replace the text in the button for an upload-input-field in html?

In HTML you can define in a form an input-field for uploading files. This input-field has a button attached, that pops up a file-chooser-dialog. How can I set the text for this button? ...

jQuery/JavaScript Date form validation

I am using the jQuery date picker calendar in a form. Once submitted the form passes params along via the url to a third party site. Everything works fine, except for one thing. If the value inserted into the date field by the datepicker calendar is subsequently deleted, or if the default date, that is in the form on page load, is delet...

How do I stop safari form submissions in a designMode="on" area

I'm trying to stop form submissions from working in an iframe with designMode set to on. For every browser except safari I can just observe mousedown on window, and stop it if it's a form element. In safari the only way I can get it to not submit is to put onSubmit="return false;" but I would like to find a more global solution like stop...

jQuery Form Handling

I have a product selection page where you choose a phone and a plan using radio buttons and I need jQuery to display the "current selection". For example I have 2 phones with two plans: Nokia N95 and Nokia N96, $35/month and $50/month Each of these 'options' has it's own radio button. When N95 and the $50/month plan are selected I need...

PHP Repeating Region and Checkboxes.

--Edited for clarity. Database: tblModule, contains a list of modules that can be enabled or disabled. tblData, contains a list of trusts and the modules they have enabled. This links to tblModule on tblData.M01 = tblModule.mod_key The PHP page is accessed from an index page and passes a variable lstModTrust to this page, to limit t...

Can a XML-RPC request be made from an html form?

I'm playing with a new service's very simple API and I'm just curious if its possible to send an xml-rpc request directly from an html form. The api request example is this: <?xml version="1.0"?> <methodCall> <methodName>send</methodName> <params> <param><value><string>YOUR_API_KEY</string></value></param> <param><va...

C# remove icon from the form's title bar

Hello, C# 2005. A client has asked me to remove the icon from the form's title bar. As they don't want to display any icon. But this me guessing as when I click on the icon property you have to browse to some icon. Many thanks, ...

What are basic ASP.NET form security practices?

Assume I have a form with some disabled checkboxes because the user as logged in shouldn't be able to check them. Where should I add some sanitization security to make sure they didn't hack the checkbox and cause a postback? In the page? Database layer? In the database? I realize it's most likely a pretty broad question. thanks, Mark...

Submitting data from textarea by hitting "Enter".

I have dynamic web page with JS. There is a textarea and a Send button, but no form tags. How do I make Submit button fire and the textarea get cleared when Enter is pressed in the textarea? ...

How can PHP determine if user pressed Enter key or Submit button?

The problem I'm having is that I have multiple submit inputs in a single form. Each of these submit inputs has a different value and I would prefer to keep them as submit. Whenever the user presses enter, it is as though the topmost submit input is being pressed, and so it is causing problems for the code checking which input was clicked...

PHP header redirect not working when posting a form - using output buffer - but does in other cases?!

Hi, I have an unusual problem, only happening on one server. Following code .... elseif ($_GET['action']=='login') { if (empty($_POST['login_name'])) { $_POST['login_name']=''; } if (empty($_POST['login_pass'])) { $_POST['login_pass']=''; } if (!empty($_POST['send'])) { if (($_POST['login_name']==_ADMIN_NAME) and ($_POST['logi...