form

anti spamming in php

hey guys , today i visited my website and i saw someone insert more than 1000 query in my story table my script is in php/mysql and i have captcha enabled and i wonder how he can do such a thing a simple form and in another function , it checks $vars and validate them and then insert in database im sure he is using a bot to do ...

Have jQuery submit a form to get a file download?

I have a form that posts to a url which triggers file download. The server is ASP.NET MVC and I write out a CSV file. What I want to do is have a jQuery/javascript submit the form instead of a form submit button. For example, I created a link and attached a handler using jQuery to submit the form: $(function() { $("#mylink").clic...

How do I not commit a record on MS-Access?

I have a bound form in microsoft access that allows a user to add data to a table. I want to place a "cancel" button on the form, that if clicked, will stop the record commitment. What is the command I need to cancel the record commitment? ...

Uploading files different servers at once using a single html Form

Is there a way to make a form where it can simultaneously upload to several servers at once? Currently in my web application, I am asking the users to type in some info + select a few files to upload. Title, Description, Info, etc File 0 File 1 File 2 File ... On the backend, I'm using Pylons. Currently it accepts POST of (info + ...

Can you recommend some online resource that have deep insight for the form framework of symfony?

I'm now reading this tutorial: http://www.symfony-project.org/jobeet/1_4/Doctrine/en/10 But I want to know more of it under the hood,like the design pattern/principles. ...

add html content to hidden form field

Hi all Is it possible to pass a chunk of html content to a hidden field and how would I do this? Thanks Jonathan ...

ASP.NET MVC : Ignore latter route elements in url for a form's action

Hi, I have a URL /products/search where Products is the controller and Search is the action. This url contains a search form whose action attribute is (and should always be) /products/search eg; <%using( Html.BeginForm( "search", "products", FormMethod.Post)) This works ok until I introduce paging in the search results. For example i...

SEO/PHP: How to Convert Form-Submit URL (Get-Method) without Javascript SEO-Friendly?

hello, i have this code <form action="index.php" method="get" class="search-form"><input type="text" size="35" name="search" class="searchBox" value="" /><input type="submit" value="Start Searching!" /></form> and actually i convert the url with javascript <script type="text/javascript"> $(document).ready(function() { $('.search...

Mootools ajax form response

I'm trying to send a form with mootools and depending on the response from the php script do such or such thing. The thing is I fail to be able to use conditional statements inside of the onComplete part of the code. I'm missing something really obvious probably, please help me :) $('formName').addEvent('submit', function(e){ e.st...

How does a Windows Forms control know when its form was (de)activated?

I have a Windows Forms application in C# .NET. It contains a user-drawn control that also handles the keyboard focus. If a part of the control has the focus, a focus highlight border is painted around it. When the form that contains the control is deactivated, the focus border must disappear from the control, obviously. But the control d...

Send e-mail from a form (only HTML, javascript)

Hi, Send e-mail from a form, here is the the link to basic HTML code: W3 Schools After writing a comment, name and email and clicking Send button the Outlook Express starts- is it possible to send message immediately (using only HTML, maybe javascript)? Or maybe is there something that can be done so that the Outlook Express doesnt as...

How can I send a form's contents over e-mail with JavaScript?

I've got a feedback HTML form, the results of which I need to send to an e-mail address. How do I do that in JavaScript? ...

More then filtering, less than captcha

I've set up a PHP standard contact form asking for name, email, comments. The processing part of the form sanitizes the data and makes sure only a single email is entered, etc. Still, I tend to get data filled out like so... // ------------------ GARBAGE STARTS Name: PQctQCulKkDyDIWrFsP Email: [email protected] Message: 5DPKep qbkb...

How do I get the add button next to my custom Django widget.

Let's say I have some classes: class Resource(models.Model): files = models.ManyToManyField("File") class File(models.Model): name = models.CharField(max_length=255) file = models.FileField(upload_to="path/here") In the Admin View, instead displaying the select multiple box, I want to display something like this: Name of ...

How can I place an image on the right of my form if I'm using the Zend_Form?

Here's what I'd like: Here's my code: <?php require_once ('Zend\Form.php'); class Sergio_Form_registrationform extends Zend_Form { public function init(){ /*********************USERNAME**********************/ $username = new Zend_Form_Element_Text('username'); $alnumValidator = new Zend_Validate_Aln...

How can I save form input to a database, I'm having trouble sending the values to my controller.

Here's my RegisterController: public function saveforminformationAction(){ $request = $this->getRequest(); if($request->isPost()){ //I NEED HELP WITH THE getFormValues() METHOD. $formResults = $this->getFormValues(); $db = $this->_getParam('db'); $data = array( ...

IE8 Form Not Submitting (Intermittent)

I have a complex classic ASP system that has worked well for years but has recently started having a strange and intermittent problem. On some forms, folks will report that they click "Submit" but that the form just resets itself (or, perhaps, the browser just reloads the form - my users are probably not able to tell the difference). M...

Zend Form - Set class on a label's dt

Hi all, Update I was able to get this to work by creating a custom Label decorator, which extended Zend/Form/Decorator/Label.php. I added a setTagClass() method to it and overrode the render method to create the enclosing tag with the desired class. There might be a more elegant way to do it but this seems to work. I'm looking for in...

Ruby on Rails form page caching including authenticity_token

I have a simple Ruby on Rails form which includes an authenticity_token. Unfortunatly, I missed that when you page cache this page then the Authenticity Token becomes invalid. I'm glad I figured it out however. How do you solve caching in such a case? ...

How to create best form design in asp.net 3.5 ?

How to create best form design in asp.net 3.5 ? ...