forms

How to find text in a richtextbox on another form c#

Hi I have 2 forms, one with containing a richtextbox and the other used for finding text in this rtb. On this Find form is a textbox and 2 buttons , "Find" and "FindNext" I've no idea how to link the 2 forms together to find the text and also how to find the text :-S Any help please?? ...

Ruby on Rails Forms: how to create a CheckBox Table (or List)

What's the best way to create a related set of checkboxes in Ruby on Rails? In the ToscaWidgets library used by Turbogears you can do the following: twf.CheckBoxTable('arbitrary_numbers', num_cols=5, options=['1','2','3','4','5','6','7','8','9','10']), This generates 10 labeled checkboxes in two rows of 5 checkbo...

Issues with an abs positioned search bar in all IE's??

I've tried googling but can't find any hints to my problem. Theres so many IE bugfixs I can't think whats going on with this one. What I've got is a 3 column layout with header and footer. The left column and main content div are both in a container div thats floated left (left col and main content floated left/right within it). The rig...

problem with code. Searching text in a rtb c#

I have 2 forms One includes a richtextbox the other is used to search for text in this rtb My code is showing an error and i dont know how to fix it. This is the line that shows the error RichTextBox box = ((Form1)base.Owner).rtxtEditor; It's saying "Object reference not set to an instance of an object." This is my whole code. p...

Submitting forms with two different methods?

I'm trying to create a quoting mechanism for my website that will collect a) information about the user (name, email, etc.) and b) four or five values (item quantities) that will be used to generate a quote. What I want to do is to have all of the information (both sets a and b) sent to me using formmail, and for the values to be passed...

MS Access 2003 - Simple question about chart within a subform, not populating on a form unless clicked

SO I have a form that has a little subform window, the subform is just a chart on it. One question I have is why the chart will not show up in the subform window unless I click the sub form window area... something I did not do?? thanks ...

Prevent window redraw when resizing c# windows forms

What windows message or event can i listen to in order to stop a window from being redrawing every pixel of it's resize? That is, when a user clicks on the edge of the window and starts to re-size it, i don't want to re-draw the entire contents until he lets go. This is because for some reason it's currently choppy at resizing probably...

(PHP) Is handling a form submission on the same page more/less/equally good as handling on a separate page?

I have a PHP form, and I'm wondering how I should handle submission. I remember when learning Rails that the behavior was to have a special handler page for a form, which then redirected the user to a landing page, which would prevent the user from accidentally re-submitting data by hitting the back button and going back to the form subm...

Symfony form binding problem

Hi, i have some difficulties in understanding why my symfony form doesn't bind properly with the data from request... The action: public function executeSendEmail(sfWebRequest $request) { $history_id = $request->getParameter('id'); if($request->isMethod(sfRequest::POST)) { print_r("POST"); ...

Ruby on Rails forms: missing template on submit

My controller has two methods: index and search. def index: renders the default view, index.html.erb, and displays a default map using YM4R/GM. def search: renders the default view using render index, but uses form input to display a custom map using YM4R/GM. The view, index.html.erb, contains a partial view, _form.html.erb, and the @...

Inserting Session variables into a form via PHP

I am trying to insert a Session Variable $_SESSION['MM_loginName'] into a table via a form. I know the Session Variable works on the new page by using: <?php echo "MM_loginName = {$_SESSION['MM_loginName']} <br>\n"; ?> I have read that this might work (if register globals is off): <input type="hidden" name="loginName" value="<?ph...

Using session variable as search parameter for a table

I have been using SESSION Variables to enter data with loginName as way to retrieve only records that contain that Users loginName. How do I create a form that can search using this parameter and bring up all the records that the user created. This is what I use to input the SESSION variable into the record. <input type="hidden" name...

Is there a way to identify forms if using the button element to submit?

I've started using the button element to submit my forms <button type="submit">Send</button> I know if I used an input element like so, I could easily determine in PHP which form was submitted (by reading the value of $_POST['form'] in the example below). <input type="submit" value="Send" name="form" value="contact" /> Is there a ...

Using text-transform on an input element actually transforms the text?

Considering text-transform is a CSS property, I don't understand how the text in the input field which has text-transform set to uppercase is actually posting uppercase text to the page when the form is submitted. Isn't CSS just supposed to modify the appearance of the page and not the content itself? If I type something in lowercase in ...

jquery submit multiple forms

Hi, I have 4 forms on a page. Form 1 must be submitted with either form 2,3 or 4 depending on user selection. jQuery's .submit() can only do one form. ajax posting the forms is not an option i can only think of adding the content of Form 1 to the other form as before submitting the latter form. is there any other way to do it? ...

Initialize foreign key drop downs

I want to populate two foreign key fields in one of my forms. The relevant bit of code is as below: if request.method == 'POST': form = IssuesForm(request.POST or None) if request.method == 'POST' and form.is_valid(): form.save() else: form = IssuesForm(initial={'vehicle': stock_number, 'addedBy': request.user, }) ...

Chrome not sending POST requests on localhost, Firefox works fine

I have copied the simple Django forms example exactly, running on localhost. The basic contact form example should submit a POST request when you click the Submit button. I'm running Chrome on Mac Snow Leopard, and whenever I submit the form, the page simply reloads with an empty form: I can see from the runserver output that it's not s...

General guidelines for parsing name=value pairs from a long user-input text string

I'm developing a system (in PHP) that will take in a string of text (from email, initially) and need to determine the beginning and end of a section of the text that contains name=value pairs of data, and parse that section so that the name=value pairs can be processed into a form submission. I am looking for ideas on what to use as deli...

Need php form to name which required fields have not been filled out.

My php form has required fields, but the message does not let the user know which field hasn't been entered. How can I do this? //if statement to check required fields if ($name && $phone && $email && && $address && $city && $state && $zip && $month && $date && $year && $contact)... //if some required fields were not filled out ...

Rails: Form confirm message with data from the submitted form

Trying to make a custom :confirm message for a rails form that returns data from the submitted form--not just a static string. <% form_for @foo do |f| -%> <% f.text_field :number_of_bars -%> <% f.submit :confirm => Are you really sure you want to use ##number_of_bars## bars? -%> The idea is if the user puts in the number 3 in the numb...