forms

Send PHP code through form in functions.php

Hey there, I have a wordpress blog theme settings page using functions.php How can i send php codes thro functions.php? Thank u! ...

Get form fields to hide and populate

I have a 3 fields: Total amount Recurring amount Occurrences A user will always enter occurrences, but has the choice of entering either total amount or recurring amount. The equation for this is really simple: Occurrences * Recurring Amount = Total Amount I need help making a Javascript function which if the user starts to type in th...

I need help with UpdateForm(); (Windows Forms Aplication).

Hey, I cant quite figure out how to create the object for Updating the Form. (Windows Forms Aplication). I'm doing a project from a book that requires me to make a Dog Racing program. I need to update the Picture box of the Dogs so that they will move. Thanks for the help! ...

Drupal 6: cck form that fetches from webservice dynamically

I have a cck module that currently does this User enters and saves username for a third party website on the module settings page User adds/edits a node When user gets the add/edit form, their username is fetched from settings, and is used for an api call which fetches some data, this data fills a select on the form. User selects somet...

symfony : forms and primary keys

Hello, I have a form and when I want to set the primary key, I have an error 'Invalid' after the form's validation. My widget : $this->widgetSchema['nud'] = new sfWidgetFormInput(); And my validator : 'nud' => new sfValidatorChoice(array('choices' => array($this->getObject()->get('nud')), 'empty_value' => $this->getObjec...

Radio buttons - show DIV based on checked button with jQuery

Hello I am trying to achieve the following - from a list of questions each with 4 multiple choice answers I need to show whether the user has answered correctly (immediately) by showing whether it was correct or incorrect once a radio button has been pressed. Here is an example of a question: <ol> <li id="question_one"> <p><input type...

php report generator

I was wondering is there any report making tools in php for MYSQL database? Threr are crystal reports for MS-SQL server and Oracle has its own report making tools. But i am finding difficulty making reports in php where i want to show header and footer for every page and it will show total pages and nevigation keys to show reports page b...

pass url stored as string in variable to form's onsubmit

how can i make a form tag using onsubmit (that executes upon hitting enter) which opens a target window with a given url in a string variable form? what i have so far: <div id="row2"> <!-- Intranet Search --> <form action="" onSubmit="urlGen(this);" method="get" target="_blank"> <input type="text" id="intranet" size="15" value="Sea...

Handling timed-out sessions before form submission

Hi, I'm wondering what generally recommended practice is for handling session timeouts prior to a form being submitted. The problem is this: User is at a form. Then, they have no session. This could be because they dawdle at filling out the form, or because they clear out their cookies, or for some other reason. In any case, it does n...

Fancybox jQuery ajax on success bind form Submit

Hi, is there a way to bind the "submit" to the fancybox after success? Here's what I have: <div class="ta_l" id="tell_friend"> <form id="form_tell_friend" method="post" action=""> <table cellspacing="0" cellpadding="0" border="0" class="tbl_insert mr_b0"> <tbody> <tr class="tell_frie...

upload file onClick without pressing button

I'm using js to upload files to the server using this <form name="form" action="" method="POST" enctype="multipart/form-data" style="float:left;"> <input id="fileToUpload" type="file" name="fileToUpload" class="input"> <button class="button" id="buttonUpload" onClick="return ajaxFileUpload();">Upload</button> </form> Instead of...

input value to be different from what is sent to POST

So the convention of using input type submit is this <input type='submit' value='Submit'> this will give me a button that says "Submit" on it and inside the post array i will have $_POST['submit'] = 'Submit' is it possible to have the submit button to show Submit but have the post value to be different. In other words, I want a but...

Recommendations - php image upload script

I'm trying to find the best method to upload images onto a server. I'm already using a script but it's not very secure. I'm not looking for anything using ajax, just a normal php upload but very secure. I Googled some scripts but there are too many, I'm not sure how to tell which is the best. Can someone who dealt with image uploads bef...

Add custom js to django form

Hi, I know how to do this: class CalendarWidget(forms.TextInput): class Media: js = ('animations.js', 'actions.js') But then i get something like: "<script type="text/javascript" src="http://media.example.com/animations.js">" What I want is something like this: <script>callMYFunction(sdf); </script> By doing something ...

Classic ASP form doesn't post on page refresh

I have an ASP page that takes two arguments on the querystring. On the page is a form that posts back to itself. If I do the form post once, and then try to refresh the page, it doesn't repost the form. It loads the page as though it were loading for the first time, missing the querystring values. Is there a way to ALWAYS force a repos...

PHP URL Encoding/Decoding Pretty Quotes across form field's %u2019

For some reason, after submitting a string like this Jack’s Spindle from a text form to php, I get: Jack%u2019s Spindle This is not what PHP's urlencode() would do, which would be Jack%92s+Spindle or rawurlencode() = Jack%92s%20Spindle Thus, urldecode() and the raw version don't work to decode that string... Is there another function ...

submit button disabled cancels form submit

I have a form like this: <form action="lol.php" method="POST"> <input type="text" name="fe" /> <input type="submit" id="submitbtn" value="submit" onclick="this.disabled = true;" /> </form> and in firefox it works perfectly, but in Internet Explorer (latest version) the button goes disabled but the form does not submit. I have also tri...

Is the state design pattern overkill for a PHP form?

I have a page that, when accessed displays a table of information related to a video: Embed code Title Description Current gallery Thumbnail image This information is read-only when the page is first accessed. There is a select menu that has the following options: Edit Description Create Thumbnail (Upload/Replace) Edit embed code ...

Proper way to process html form in BaseHTTPHandler

I know that I am supposed to use cgi.FieldStorage for that. But what do I initialize it with? def do_GET(self): form = cgi.FieldStorage(WHAT SHOULD BE HERE?!) thanks! I did search, but didn't find an answer :( ...

symfony : how to make a validator for unique key ?

Hello, I want to know how I can make a validator for a key which must be unique. ...