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...
I tried the Drupal form APIs and like it a lot. What stand-alone PHP classes exist that perform similar functions?
...
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?
...
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.
...
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 ...
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
...
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 = "...
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...
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
...
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
...
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?
...
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.
...
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...
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...
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...
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.
...
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 ...
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...
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...
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...