I checked out both of these previously-asked questions, and they're a help but not a full solution for my case.
Essentially I need to validate a user-submitted URL from a form. I've started by validating that it begins with http://, https://, or ftp:// :
class Link < ActiveRecord::Base
validates_format_of [:link1, :link2, :link3,
...
We have a hosted site that has a CMS we built running on a LAMP stack. We noticed that when you save HTML that has a tag embedded in the HTML the request immediately dies. This does not occur on the staging or local development instances of the CMS, so I'm assuming its a server configuration issue. Any ideas what might cause this behavi...
I am trying to create a custom form field and validate off it. This is version 1.0 of Django.
Here is my form object
class UsernameField(forms.CharField):
def clean(self, values):
print ""
Here is how I call it
class RegisterForm(forms.Form):
username = UsernameField(max_length=30, min_length=4)
password = forms.Ch...
I think the title is my question. I would like to know what's the difference when using GET or POST method in php. Which one is more secure? What are dis/advantages of each of them?
Thanks
EDIT: I also found similar question to this one here.
...
In Visual Studio 2008, using VB .NET, I have a Split Container that I want to dynamically load panels into the Panel2 slot from other team member's work based on user input in the Panel1 controls.
Can my team members work on panels outside of a form, save it, then have the main Form just load those panels when needed without copying and...
Is there any difference beween:
<form action="">
... and:
<form action=".">
?
...
Hello everyone.
I am having trouble with something i wanna do. I have some big forms which take some time to create. To make the app load faster i thought of letting the forms be created in a thread which is created at main form's OnCreate event. The thread has a FApplication field of type TApplication which obviously is the Application...
I have an application which uses 2 forms, a Main Form and a Splash Form being used in the following configuration:
public class MainForm : Form
{
public MainForm()
{
SplashScreen splash = new SplashScreen();
// configure Splash Screen
}
}
public class SplashScreen
{
public SplashScreen()
{
Ini...
I know you can specify fieldsets in django for Admin helpers. However, I cannot find anything useful for ModelForms. Just some patches which I cannot use. Am I missing something? Is there a way I could achieve something like fieldsets without manually writing out each field on my template in the appropriate tag.
I would ideally like to...
Hi,
For example, there is this website: www.azet.sk
On the right, there is login and password, I'd like my application to login to this web application and retrieve the data from my own account to C# (.NET) application and work with it. The aim is to keep the "logged in" connection alive and send vars using POST method. Is there any tu...
We have a bunch of story libraries in Sharepoint 2003 for all of our different projects. We created a nice Stories Library with a bunch of useful views in Sharepoint. Then I exported it from Sharepoint designer and I use that template to create a library for each new project.
The problem is, the Infopath template always has the same ID. ...
for (i = 0; i < document.checks.user.length; i++) //for all check boxes
{
if (document.checks.user[i].checked == true )
{
document.checks.submit();
return 0;
}
}
<body>
<form action="" method=POST name="checks" ID="Form2">
I have a bike:
<input type="checkbox" name="user" value="Bike" ID="Checkbox1">
<b...
The button_to causes a line break before it in HTML. I have found a workaround which will work, but it's hardly ideal, because then the buttons are NOT real buttons. Is there any other way to avoid the line break before the form?
Here's the resulting HTML
<a href="/last_page">Back</a> |
<form method="post" action="/next_page" class="b...
Is it possible to run a windows form application or a console application under system account... Like asp.net application can run under system account by changing machine config file . This is to give more privileges to the program ...
...
I'm posting a form in Coldfusion on Linux. Form has a file field. CF requires the enctype="multipart/form-data" attribute on the form tag. If I have this, I get a "JRun Servlet Error - 500 No such file or directory"
If I take the attrib out, the form posts and I get the CF "enctype=multipart/form-data" error.
What to do?
Here's a s...
I have two submit buttons in a form. How do I determine which one was hit serverside?
...
I have a small list of checkboxes (see below), and I noticed I can use an input element with type="reset" and it will uncheck all the boxes.
I know using the input would be better than an "onClick" event of the link, because I wouldn't be relying on JavaScript, but for this example I have both.
<a onclick="javascript:document.myList.re...
I want my application to fill in a single field in a form that
exists as an black-and-white image file. The form always
starts as the same paper version, but by the time my
application gets it from my users, it may have been scanned or faxed more
than once. Because of that, the field I need is not in the
same place in every file.
My u...
If I have a loop that requests my data from my form:
for ($i=0;$i < count($_POST['checkbx']);$i++)
{
// calculate the file from the checkbx
$filename = $_POST['checkbx'][$i];
$clearfilename = substr($filename, strrpos ($filename, "/") + 1);
echo "'".$filename."',";
}
how do I add that into the sample ...
In my forms, I want to make HTML labels bold in general, but not bold when they are labelling radio buttons and checkboxes.
How can I do that in a CSS that can be imported and works by default, without requiring local overrides of the styling?
Example Radio Label (should not be bold)
<label for="banana">
<input type="radio" name="bana...