form

Custom Formtastic Control with Multiple Parameters

I'm attempting to build a custom control for Formtastic that takes a latitude and a longitude, however, I'm not sure how to go about passing the method names through. Ideally I'd have the following in the semantic_form_for block: f.input :latitude, :longitude, :as => :location I've also tried passing with an array: f.input [:latitude...

Form renderer for PHP

I tried the Drupal form APIs and like it a lot. What stand-alone PHP classes exist that perform similar functions? ...

form submit in a non secure page

I would like someone to answer this and if possible provide some reference links to back it up (if possible). Need to prove to someone its not secure. If I have a form with the post method on a non-secure page, but the action attribute is pointing to a secure URL, is the submitted form secure? ...

cakephp form validation

does anyone know if there is a VALIDATE function for a form in cakePHP and view the errors array? i.ve checked the documentation but the only thing i found is the SAVE function, i just need to know if the data i send is valid and review the errors manually. ...

non-generated forms in mvc

I still don't understand how I should handle my form input errors within an mvc. I have f.e. the a zend-like controller and a form class and so on. But where do i include my form file which is not generated but only with pure html <html> <title>User-Registration</title> <head>...</head> <body> <?php (if($errors)) { ?> <p ...

Form to email script for asp.net

Hi all, Cdonts used to be the de facto form to email script, I think for classic ASP. Does someone know of a better form to email script I could use for asp.net please? Thanks, James ...

Strange Form problem: cffile not working

Hmmm...strange problems... I'm making a form to upload syllabi. Basically, someone go search for a course and select the button next to the course that says "Upload Syllabi." Next, a window will popup prompting them for the file. I pass this page info to insert the URL into the database etc. <input name="upload" type="button" value = "...

$.post in json format using a variable to store the json string?

I need to post 60 inputs. I have built up the json string and stored it in a variable. But unfortunately the following code doesnt work: $.post("process_form.php", my_var); my_var contains a json string in the format: { starta:'1', currenta:'5', finisha:'2', startb:'1', currentb:'5', finishb:'2', startc:'1', currentc:'5', finishc:'2...

Clear session variable after use

Is it possible to use a session variable, then unset it directly after? Example: //==== //Process Form if ($_POST['Submit']) { $update = $userSettings->update($_POST); //If there are form errors if (!$update) { //Load the errors into an array $errors = $update[1]; } else { //Set the session ...

loading value into a select?

when loading my form (from variables) i can easily set the value of most text form items with the value tag like this: <input type="text" name="fname" id="fname" value="<?php print "$fname";?>" /> how can i do the same with select input form elements? i guess i have to use a script? thanks a lot ...

jQuery Grab Value of Dynamic Textarea

Suppose you have a textarea (id="fred") that appends (.append()) or replaces (.html()) another element. The textarea's submit button is called via delegate to send the modified text blurb in the textarea... How do you select the modified textblurb, as opposed to what was originally put in the textarea via the first delegate? ...

How to prevent form from being submitted?

I have a form that has a submit button in it somewhere. However, I would like to somehow 'catch' the submit event and prevent it from occurring. Is there some way I can do this? I can't modify the submit button, because it's part of a custom control. ...

Need validation for a form in PHP not in Javascript?

Hai.. i already added javascript validation for my form.Its working fine.But mean while i ve to validate the same form using PHP also. This is the form code: class airportclass{ function add_airport_frm(){ $errmsg=0; <table> <form action="" method="post" name="airport" > <tr> <td colspan="2" align="center"><?php echo $err...

ASP.NET MVC Registration With Captcha

Hi, I would like to allow my users to register from homepage by entering name, surname, email and password information. After submitting the form, I want to redirect my users to a security check page for a capthca validation. User will be saved to the database after this captcha validation. The scenario is similar to Facebook's homepage...

Webmobile - Display 3 select boxes at the same time !

Hi! I have a mobile website (mainly iPhone, but Android and others too..) with a simple form. It contains three select boxes for the day, the month and the year. The iPhone automatically displays a pretty nice wheel for each one of the select boxes, but only one at the same time. Is there an easy way to display the 3 wheels (correspond...

viewing a form by clicking a button in java netbeans.

hello guys. i have made a program in netbeans.i have 2 different jframe forms. in form1 there is a button. i want that when i click that button, it makes form2 invisible or vice versa. how can i do that? thanks in advance. ...

Best approach for confirmation page...

I just finished the basic design structure for my contact page without flash; it's located here. Can anyone suggest the best approach for making a confirmation script (inside a DIV) without reloading the page (preferably with jQuery). I want to replace the content in the main WRAP with new content (just text) confirming the email was ...

Form fields not retained on postback

I'm developing a website using EPiServer. I have a form which submits to itself. On submit, I check if there are any fields missing. If yes, then error message is shown. The problem is that my fields are reset when submitted. I could check this using jQuery, but I'm not. I'm cheking this from code behind. I've tried setting EnableView...

Pass Values Between Two Forms

Hello, Is there any way to pass values between two forms. Let's say, I have two html form. At Form 1, there's one field called name and submit button. At Form 2, there's two field called name and email and submit button. What I want to get is, At form 1, when i fill Form 1 name field and click submit, it will carry me to form 2 and n...

PHP doesn't recognise form elements from Javascript

HTML: saucydares.freehostia.com/saucy.php I should just add that while there are no images, the site contains adult themes so isn't work safe. PHP: <?php mysql_connect("mysql4.freehostia.com", sebsal2_db, ""); function him() { $HIMquery = "SELECT dares FROM sebsal2_db.him UNION SELECT dares FROM sebsal2_db.other O...