forms

Expand form to all screens

The question is simple: is there a way to expand a single form to all connected screens? ...

Redirect user upon form submission

Hey i want to use php to redirect a user to a url depending on which radio buttons they have been selected in the form once they click the submit button. I have this thus far but it does not work so its pretty useless. <?php // variables form form $Country = $_POST['Country']; ?> <form action="<?php pri...

Form "is undefined" error in Firefox

I have this code, let say it's a.html <form name="frmSubmit" id="frmSubmit" method="post"> <input type="hidden" name="hdnName" value="user name" /> </form> <script> // 1 : start document.frmSubmit.action = 'b.html'; document.frmSubmit.submit(); // 1 : end // 2 : start document.getElementById("frmSubmit").action = 'b.html'; document.ge...

js form filling checking

How could i return user to unfilled field when he push "submit" button? I have something like this: <!--Contact Name--> <div class="section" id="inputdiv"> <span class="fieldname">Name:</span> <input type="text" id="contactname" /> <!-- Nessesary to be filled--> <script type="text/javascript"> ...

check field formmail

Hi, i am trying to change this: foreach $require (@Required) { # If the required field is the email field, the syntax of the email # # address if checked to make sure it passes a valid syntax. # if ($require eq 'email' && !&check_email($Config{$require})) { push(@error,$require); } ...

Why doesn't my WWW::Mechanize submit a PayPal form work?

Nothing I've tried can get my code to submit correctly. Can anyone else figure this out? #!/usr/bin/perl use WWW::Mechanize; my $user = '[email protected]'; my $pass = 'hackswipe'; # Test account; don't worry my $browser = WWW::Mechanize->new(); $browser->get("https://www.paypal.com/"); $browser->form_with_fields("login_e...

Change Value Of A Field On Submit Using Javascript

I would like to add some JavaScript to do the following. I would have 3 fields like this. <input type="text" name="a" /> <input type="text" name="b" /> <input type="hidden" name="c" /> say if I entered 100 in the first field and 19 in the second field. it would divide 100 by 19 and round it up to no decimal places, and then replace ...

RoR 3 - f.label embeds an <span> tag - howto

How would i do the following. My current code is : <%= f.label :email, html_escape("<span class=\"big\">Test</span>") %> This doesn't shows what i want, because the <span class=\"big\">Test</span> is shown as text instead of HTML. I have been thinking of overriding the FormBuilder, but i don't know how i would do this and sea...

selected responses on form are not picked up on 2nd php page

I have a section of code that I'm stumped on how to handle. The Selected options on the drop down menues are not being picked up on the second PHP page. That is to say the variables error, error1 & error2 on the second page remain blank. I had the same issue with other variables, but was able to fix them with $_POST, but not sure how ...

Cakephp Dynamically add Drop down menus for Time

I have a form which includes adding operting time for a restaurant. operation_hours(weekday, open_time, close_time, restaurant_id) i use this in the form <div class="operation_hours"> <?php echo $this->Form->dateTime('RestaurantOperationHour.open_time', false, '12', null, array('interval' => 15, 'value' => '10:00:00')); ?> <?php echo...

Opening jQuery UI dialog with a keyboard shortcut puts the key pressed into the dialog's form

I have a form inside a jQuery UI dialog. The dialog is set to open whenever the "t" key is pressed. The problem is, when this happens, the letter "t" gets inserted into the first input of that dialog's form, which I don't want to happen. Here's the code I have: $('#addtime-form').dialog({ minWidth: 351, modal: true, autoOpen: fal...

Jquery detect when user uses SELECT element in form

Hello, I want to be able to detect when the user has selected an option from a SELECT element in a form. I know what to do from there, but not sure about how to achieve the initial detection. <select id="mySelect"> <option>1</option> <option>2</option> <option>3</option> </select> I would like the solution in JQuery if po...

Form with xml or excel data dropdowns?

Hi, I want to create a form (flash or java/ajax) that allows selection data to be pulled from an xml file. Example: A ring builder application - the user selects the ring setting in one dropdown and then they select a diamond in another drop down. But the prices of the diamonds changes every day based upon the market, so we would need...

HTML Form onSubmit()

My HTML form is clearing automatically after I click the submit button. Any idea how to stop this from happening? Here's the opening tag for the form: <form onsubmit="return math()"> ...

Rails 3 Form Helpers: UTF8 and other hidden fields

The view: <%= form_for :blog_post do |f| %> <ul> <li> <%= f.label :title %> <%= f.text_field :title, :type => 'text', :id => 'title', :size => '', :limit => '255' %> </li> </ul> <% end %> <!DOCTYPE html> <html> <head> <title>LevihackwithCom</title> <script src="/javascripts/prototype.j...

send large text to server using html form hidden value

HI all I need to send an dynamically generated html to server using html form, html can be bigger size at present it is 1MB I m sending an dynamical generated html to server using form hidden input field. at server side exception is : too large content.. The dynamically generated html is used to generate pdf and generated pdf will se...

disable auto logout feature in asp.net

Im using forms authentication. I want my application should not logout the user automatically after sometime. ...

How to get a label value from web user control to a content page using master page

I have a web user control book.ascx and a formview: <formview runat="server" id="fv"> <ItemTemplate> <asp:Label runat="server" id="bookID" Text='<%# Eval ("bookId") %>' /> </ItemTemplate> </FormView> This formview is databind dynamically. Now i have a Content page Default.aspx: <%@ Register src="Book.ascx" tagname="Book" tagprefix="u...

Repositioning images on FormResize proportionally

Hello all! I have a Delphi form with TImages on it. Actually, it's a "fake" desktop with "icons" (the TImages). When the user resizes the form (scales it or maximizes it, for example) the icons on the form should align proportionally. Right now, I'm doing something like this with the images: ImageX.Left:=Round(ImageX.Left * (Width / ...

Firefox messes up form fields values

Hi all! I have a list of exercises which I want to edit using form inside Jquery-ui dialog. I initialize dialog on page ready: $('#exercise-edit').dialog({autoOpen:false}); Then on each exercise click I do ajax call and it fetches exercise data and populates it using "populate" plugin function showEditExercisePopup(id){ $.getJ...