form

How could I validate a form, but have it return to the same form on action is there was an error? Very newbie question.

Here's my registerFormOne.php code: <?php session_start(); require("validationLibrary.php"); $validForm = true; ?> <html> <head> <title>Registration Form - 1 of 2</title> </head> <body> <h1>Registration - Part 1 of 2</h1> <p>Please fill in all the required information before submitting the informati...

Is there a way to receive key input to an out-focus form?

I was wondering if it is possible to receive key input to a form that is out of focus. For example, I have my C# form to be top-most of all windows; I want to get all the keys I type on other applications like for example browser to kinda get a history of all the keys I typed while my computer was on.? Is there a way to do this? ...

How to: Build a form that connects to amazons mechanical turk for submission.

Flow: ( example : www.feedbackarmy.com ) User inputs data into a form. User submits and feedbackarmy shows the selections. User chooses a "price" in drop down and clicks the paypal button. User pays for item and then returns to feedbackarmy.com with a link to results. Essentially I would like to build a form that the user pays before...

Modx css issue not pulling in styles on the form

Hi I'm editing a site using Modx cms. I'm trying to add a contact form to the contact page. I already have one in the sidebar specified in a template. The code on the contact page form points to the same div tags, but it isn't picking up any of the css. any ideas why this is happening. Do I need some kind of plugin? Thanks for all yo...

Submit button not focused even though tabindex is properly set

Hello, I have defined tabindex for the input fields in a form. When tabbing through the input fields the submit button is never getting the focus, some other input fields in a different form on the page gets the focus. Those are all having tabindexes higher than 3. How come? <form action="subscription.php" name="subscribe" method="post...

Hide Cursor on Form in VB6

I'm currently using the ShowCursor API call to hide a cursor for an application after a set period of inactivity. This works fine, except that the cursor is hidden over both the menus and status bar (which I don't want). I'm also using a Form_MouseMove to switch the cursor back on, but this doesn't work over the menus or status bar. I...

Is it possible to do a post action to two separate servers

I'm running an online shop and I'm trying to have the "purchase" (which is a form "post" action) post to two separate servers (one local and one remote) ... I think this might be impossible but I'm looking for a definitive answer. ...

Firefox Upload Form Issue

Ive created an uplaod script in php that takes a file, resizes it, and creates a cropped square thumbnail. The script itself seems to work fine. However, when i tried to upload an image through firefox, on clicking the submit button the browser shows the loading animation, but it never calls the script, it just stays on the current pag...

Update Twitter with AJAX-powered form

I'm trying to make an AJAX form that will update a twitter status when updated. I have the form working currently with php, but am not sure how to add AJAX functionality. Here's the form: <form id = "yourwhisper" method = "post" > <label for="whisper">Enter your status update</label> <textarea id="whisper" name="whi...

Does binding happen when posting with ajax?

Can you bind to an object when posting with jQuery? You can call this controller action public ActionResult AddCar(Car myCar) { . . . } Where the properties of the form using the binding of ASP.NET MVC to populate the properties of the car. If I am posting via ajax and jQuery can I do the same thing? ...

How to dynamically populate a choices widget in symfony?

Suppose there is an image_url column in database. I want the user to choose from several recommended images,which is something like this: <input type="radio" value="domain.com/path_to_img1" name="image_url" /> <img src="domain.com/path_to_img1" /> <input type="radio" value="domain.com/path_to_img2" name="image_url" /> <img src="domain....

What are the units for form widths and heights in VBA?

I'm programming VBA for Word 2007. I've created a UserForm which I need to resize with script. I noticed that its not pixels Me.Width = pixelW // form appears about 20% larger than the pixel width And its not twips either Me.Width = (((1 / TwipsPerPixelX()) * pixelW)) / 1) // form appears very small So how are form widths an...

Prototype focusFirstElement() causes form to 'disappear' in IE

Strange bug I'm getting. I have a login form that is hidden by default, once a user clicks on an observed element, the element containing the form slides down (using Effect.BlidnDown in Scriptaculous) Here is the function, which is part of the 'Interface' object: revealLoginForm: function() { $('a_login').blur(); if (!$('hform'...

ASP.NET MVC how to reset form when action returns a FileResult?

I have an ASP.NET MVC form that when submitted can return either an ActionResult if there was an error with the data, or if everything is fine it redirects to a different action that returns a FileResult. I've created a bit of a sample to provide an idea of what I am doing. This is the html: <% using (Html.BeginForm()) %> <%= Html....

[PHP | MySQL] multi-page forms and SESSIONS vs HIDDEN form data

I'm working on a 2 page form that POSTs a query to a database. Read-only, no writing. None of the information is confidential, nor will it every be. The site must be 100% non-JS compliant, so Ajax and the like are not available. All I got is PHP, baby! FORM-2's content is dependent on a fraction of the data in FORM-1, but ALL of the da...

How to refactor this symfony code??

In action.class.php: $form = new NewsForm(); $form->setWidget('thumbnail', new sfWidgetFormSelect(array('choices' => $news['images']))); $form->getWidget('summarize')->setDefault($news['summarize']); $form->getWidget('title')->setDefault($news['title']); Where $news is generated in previous steps; It looks redundant,how to refactor i...

Recording a Yes/No question from a form in PHP

Hello all , I want to write a Yes/No form with radio buttons. By default none of the buttons would be checked. On submit, I want to check that at least one of then is checked! function draw2($postid, $postName, $canId, $canName) // for Yes/No candidates { colspan='2' img src='images/".$canId.".jpg'".$canName." input type...

Drupal and Comment Form

I need to insert the comment form directly to the node template (I use node-type.tpl.php to theme the node-type). In related issue, if I go to /comment/reply/NID I get the comment form, but it's got only "preview" button, and no submit button. the Preview button does nothing when pressed on. Thanks for the help! ...

How do I add another checkbox to the php in my contact form?

Hi I'm trying to add some another field to this php contact form I have a checkbox for "do you agree to our terms of business", but how do I add another one for opt in for Marketing. Thanks for your help Regards Judi <?php $adminemail = '[email protected]'; // type your actual email address in place of [email protected] $usese...

javascript html form

send a value from javascript to html form input having a value in javascript, need to send that to <'input type='hidden' id='imgscr'/> when submitting the form the value also should submit.. (set value from javascript to html form input) ...