form

How do I style radio buttons with images - laughing smiley for good, sad smiley for bad?

I would like to create an HTML form for user feedback. If the overall feedback is good, the user should click on a laughing smiley, if the overall feedback is bad, the user should choose a sad smiley. I think this should be done using radio buttons, with the smileys instead of the radio buttons. Maybe I'm wrong though... Do you know ho...

validate code entered into a form

i am trying to setup a simple javascript form. User must enter correct discount code. If not they get an error message. if correct, they are directed to another website. any help would be greatly appreciated! ...

how can i get a next form/page while each submitting form ??

i am working with a django quiz application where one question per page. when i will answer one question selecting a radio button and click submit button how can i get the next question in the next page as well as the answer will submitted to database. If anyone help me it would be an outstanding solution for me. please I wrote a view to...

How to use Js->submit() in CakePHP?

Im trying to create a simple Ajax form for a message board in a CakePHP application, but I can't for the life of me figure out how to properly use the Js->submit() function to submit a form via Ajax. Heres the form code within my view: <?php echo $this->Form->create('Message',array( 'type' => 'post', 'action' => 'add', 'onSubm...

What's the best abbreviation of this jQuery instruction?

$( "input[role=submit_action], button[role=submit_action], div[role=submit_action], span[role=submit_action], a[role=submit_action]").live( "click", function() { }); and this too: $( "input[role=submit_action], input[role=submit_require]").live( "click", function() { if ($(this).attr('role') == "submit_action") { // ...

Remembering CodeIgniter form_dropdown fields

This works... form_dropdown('location', $location_options, $this->input->post('location')); But when I try and use an array to add extra attributes, it stops working... Why is this? $attributes = array( 'name' => 'location', 'id' => 'location' ); form_dropdown($attributes, $location_options, $this->input->post('location')); ...

Using same php file to show form and receive the form's data

I have a php page that generates a form. The action attribute of the form is the page itself. After the user submits the form, the same page is loaded, but this time a POST variable is set, so the page runs another script to deal with the incoming data from the form. I do this by using a conditional fork: if(isset($_POST['var'])){ g...

Using the jquery form plugin, how do I stop json-encoded html from being escaped

I've got a setup where I use the JQuery Form plugin to submit my forms through ajax, returning a json object from the server (running django, using simplejson.dumps). The json returned is constructed as this: status: [success/invalid/error] error: [errortext if any] html: [html-text to be inserted] My problem is that when entering the ...

Can an HTML form action attribute be repeated ?

I have an application that generates a element with an 'action' attribute. I need to change the value of the action attribute, but it's not possible to do that. However it is possible to add another 'action' attribute before the generated one thusly: This seems to work for IE. I'd like to know if this behavior is defined in the w3c ...

Create a select dropdown from file tree of images & sub directories using PHP

I'm creating a wordpress meta box and I need to scan a directory of subdirectories containing images within my template and add these to a select dropdown so I can use the filename in my template. The images are currently arranged in the folder like this: Parent Folder |_ Secondary Folder    |_ Image.png    |_ Image.jpg    |_ Image.gi...

Communication between forms and frames

Hi, I've been working on a program in Delphi 2009. It very similar to the program "Mimics" by materialise, where you can create and manipulate 3D meshes. There are 4 panels with different aspects for viewing a 3D object (XY,YZ,XZ, and 3D perspective). Each of the panels is an instance of a custom frame I made for viewing 3D objects. The ...

Fetching remote code/text with javascript?

So I'm working on making a dynamic drop down select form and I need for each menu to propagate possible choices from a prebuilt chunk of html (located at, say, http://example.com/menu/choices) is there an easy way to use javascript to fetch the html of a remote page and then plug that in to the page? I know I can use .write() to insert t...

Missing form after Minimize - Windows form application

I try to minimize my form to system tray but when I do, the form disappears and the notification icon doesnt work :( What am I doing wrong? Private Sub Form1_Resize(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Resize If Me.WindowState = FormWindowState.Minimized Then Me.Visible = False ...

Dynamically creating classes - Python

Hi folks, I need to dynamically create a class. To go in futher detail I need to dynamically create a subclass of Django's Form class. By dynamically I intend to create a class based on configuration provided by a user. e.g. I want a class named CommentForm which should subclass the Form class The class should have a list o...

Automating Report Writing with Microsoft Office

I write compliance reports for work. I fill in a PDF form and click 'Yes' or 'No' to indicate whether the company is in compliance with a particular statute. I would like to have this form autopopulate my compliance report in Word with the company's name and the appropriate findings and corrective actions. Is this possible? If not, can...

Elmah: How do I log form post data?

Hello! Is there a way to log the post request data in ELMAH? I am getting error emails, and while the error log contains the URL, request method, etc, I am not seeing the actual POST data. For example, Here is a sample Actual request: /bep/KotexCode/GetCode?stickerCode=1234532 But, the log only shows the request url and not the vari...

Passing ID to another form

Hi, im trying to pass the information of a specific data to be edited in another form which is edit_doc.php. However, when i click "Edit" it doesnt seem to work. Only edit_doc.php opens but the information the does not appear. Is ther any mistake in the codes? Please help. [php] echo "<table border='1'> <th>File Reference No.</th...

very simple php form - one field not submitting

Hi. I am making a simple registration form and cannot get one of the select fields to submit. My HTML and PHP all validates fine can anyone please help? My PHP looks like this: <?php $where_form_is="http://".$_SERVER['SERVER_NAME'].strrev(strstr(strrev($_SERVER['PHP_SELF']),"/")); // Checkbox handling $field_9_opts = $_POST['field_9']...

How to access form data after submit

Hi to all, I have a problem that I am not able to solve. Well, let's suppose that we are invoking a method (in a backing bean) from a webpage (maybe jsp, xhtml, portlet ...) pressing a button. <h:form> .... <h:inputText value="#{errorManager.errorTestDataBean.errore00}" /> <h:commandButton id="go" value="GO" action="#{errorManager.tr...

unable to get form elements by using form name in javascript

I am having an issue with accessing my form by it's name. When I use document.form[0].mylink.value it recognizes the value and outputs to the innerHTML that I specify. However, when I use document.myform.mylink.value it doesn't seem to recognize the form. I have tried this in chrome 6.0 and also firefox 3.6.3 and get the same result i...