forms

Is there a library or framework for setting preferences from within an iPhone application?

Using the Settings.app on the iPhone isn't that hard. In fact Xcode does the most of the work for you. Just add the Settings.bundle to your project and there you have it for nearly no cost. At the moment I'm developing an application for the iPhone which requires the user to fill out several "forms", mostly key-value pairs, some sliders...

How can I include the output of a Perl script into a PHP page?

We've been asked to support some rather old Perl forms on a new site, as we're using a PHP based CMS we need to include the Perl scripts into our new CMS. I've tried a bit of shell_exec but that's disabled. Has anyone got any ideas? ...

How to process large amount of POST data from a textarea?

I am developing a tool where lots of data (>1MB of data) with lots of lines can be copied and pasted into a textarea. When I submit the form it just shows a blank screen. Nothing happens. Is there a way to process large data submitted by a form with PHP like in chunks and pieces? What are the best practices do handle large amount of data...

Javascript submitting all the forms on a page

I'm using jsf 1.2. When a particular jsp has more than one form with a specified id, for example when using something like below, jsf gives the form a seemingly random id. <ui:repeat> <h:form id="repeatingform"> ... I would like submit all forms using javascript. Is there a way to do this without knowing the ids of the forms?...

Is my form laid out in a table accessible?

I am making a form to search for colleges based on athletic programs offered and the division of the sport. I have laid the form out in a table. The "all divisions" checkbox selects all the checkboxes for that sport. I know screen readers have both forms and tables mode. Is my current design accessible or should I add labels for each i...

ASP.NET: How to redirect, prefilling form data?

i want a handler to redirect to a web-forms page, pre-filling in the values of some controls on the form. i tried setting my current Request.Form data: if (theyWantToDoSomething) { //pre-fill form values context.Request.Form["TextBox1"] = "test"; context.Request.Form["ComboBox1"] = "test 2"; context.Request.Form["TextBox2"]...

(C#) How to detect when a windows form is being minimized

How to? I know that I can get the current state by WindowState, but I want to know if there's any event that will fire up when the user tries to minimize the form. ...

Optional Entries: How do you Design for completion and reduced abandonment?

This is my first post on here though I read and browsed several questions. I am not sure if this has been asked before...Related Questions didn't seem to have anything with the GUI but optional parameters in language. Anyway, here are the question: Q) How do you design/develop a form with a few optional entries in the form? One option...

Drop updating a hiddenfield with an unrelated value

If you wanted to change the value of the hidden field to something not in the value of the dropdown like so <form> <select id="dropdown" name="dropdown" onchange="changeHiddenInput(this)"> <option value="foo">One - 42</option> <option value="bar">Two - 40</option> <option value="wig">Three - 38</option> <...

Cleanest way to control page position after form postback?

I have a form that when submitted successfully generates new elements on the page describing the successful form submission and providing the user with some "next steps" information. This success message element is at the top of the page and I'd like to bring the user's scroll position to this point after they submit the form. I unders...

PHP ZIP files on the fly

What's the easiest way to zip, say 2 files, from a folder on the server and force download? Without saving the "zip" to the server. $zip = new ZipArchive(); //the string "file1" is the name we're assigning the file in the archive $zip->addFile(file_get_contents($filepath1), 'file1'); //file 1 that you want compressed $zip->addFi...

Form calls 2 php functions

I have an html form which uses a php file to submit data by email. I want to add some code (which I already have) to generate random numbers for spam protection. Can I call another php file within my form? Here is the code that goes in the form: <form name="mail" action="go.php" method="post" onsubmit="return CheckData()"> <input typ...

How to write "on form submit complete" using javascript?

I have a form loading inside my page and there is a button out side this form its function is to submit this form. $('#MyForm').submit(); I want a way to write a submit complete function, means to know that the form successfully/completely submitted. I tried the jquery form plugin, but didn't work, i think because the submit come fro...

Access 2003 VBA: custom form property problem

I have a regular form called "Fish". It has a TreeCtl called "loctree" which I used as a location chooser to change a field in Fish. I've since added several subforms to Fish. Two of these have location fields that I would like to use loctree for. Since I didn't want to instantiate a new TreeCtl for each of these subforms, I thought I ...

Uploading files using non server side input controls

I need to upload a file from the client to an asp.net page. The source page is not able to use the server side controls. Is this possible? I have seen this question: http://stackoverflow.com/questions/569565, however this is using a standard input file control but a server side button. In my case I can't use a server side button. Essen...

Click on link, add text to textarea?

Let's say I have this javascript: <script language="javascript" type="text/javascript"> function addtext() { var newtext = document.myform.inputtext.value; document.myform.description.value += newtext; } </script> and I want to enable it so I can click on some html link that says "add text" and I want the text to be @ . $usern...

How to show which form elements are already selected in PHP

How can I get this code to show which option is already selected? This is basically an edit page and it is pulling info from the database and populating the relative fields I have a drop-down menu, multiple select box, and radio buttons on a page along with some elements. The info is getting displayed in the elements fine, but I can'...

sending username and password through email after user registration in web application

What is your opinion on sending the username and password to their email address when they register on our website..this way if they forget the password in the future, they can look it up in their email...also we wont have to implent the forget/reset password scenario (we are close to release).. is this approach safe enough? My second...

Stop Post Data From Different Domain PHP

I'm a beginner in PHP. What I'm trying to do is stop Post Data coming from another webpage. The problem I am having is let's say someone copies my form and pastes it in their website. I want to be able to stop that Post Data from running the script on my email form. How can I do this? Let me know if I'm not being clear enough. My PH...

Using jQuery to change input button text back after a few seconds

I'm using a form and jQuery to make a quick change on a web site. I would like to change the button text to 'Saved!' then change it back to Update after a few seconds so the user can change the value again. Of course they can hit the now 'Saved!' button again, but it doesn't look nice. $("form.stock").submit(function(){ // Example...