Thanks in advance for whoever can help with this question. I have build a messageboard-database using html forms, PHP, and my SQL. The website allows people to post topics and then post messages for each topic. They can then vote up or down on each message.
Right now, I do all that through a single PHP page and I use POST. When I u...
I have a simple contact form with name, email, a select list, and textarea. In my mailer php script I'm trying to add a simple filter to prevent SQL injection or other forms of hacking.
For example, I'm using
$name = filter_input(INPUT_POST, 'name', FILTER_SANITIZE_SPECIAL_CHARS);
Is this good?
...
I was wondering if it would be possible to set a session variable from a radio button.
This is what I have so far:
<form action="process.php" method"post">
<input type="radio" name="number" id="number" value="1" /> 1
<input type="radio" name="number" id="number" value="2" /> 2
<input type="radio" name="number" id="number" value="3" /...
I'm using the phone number MultiWidget provided by derek73. Question is: it puts three separate values in the POST - how should I recombine them into one value?
class USPhoneNumberMultiWidget(forms.MultiWidget):
"""
A Widget that splits US Phone number input into three <input type='text'> boxes.
"""
def __init__(self,attrs=None):
wi...
I've got a page that has a simple one checkbox form with a submit button for users to mark that item as "want to play."
Given the simplicity, I'd like to replace it with a single DIV and graphic of a toggle button or switch or something, so that users can click it to mark, but not have to bother with the silly single checkbox and submit...
In the past I have always used a hidden field, and on the submit button onClick event I stuff the list contents (the text of the li elements) into a hidden form field using custom code, and parse it out on the server-side using custom code.
This has always felt like a hack and I was wondering if there is a more modern approach. I'd lik...
I have a 2 part form.
The 1st form is submitted via $.post and (if all goes right), is replaced by a dynamically generated form from php. The idea behind this being that the 1st form creates an entry and the number of related images for said item. A new form is generated to upload said images.
My problem is that my newly generated fo...
My website has been created with a CSS/HTML frame work that has been integrated into an ASP.NET website.
Inside of a ContentPlaceHolder, I have a simple login form. The catch is that I am using the onclick event of an image to submit the form. It normally works pretty straight forward, but this time I am having an issue.
<div id="lo...
I have this form in a Django application
In Firefox it works as charm,
and in Chrome/IE6 this won't do the post operation needed
Any ideas why ?
<form action="/lang/i18n/setlang/" method="post">
<input name="next" type="hidden" />
<input name="language" type="image" value="ar" src="/flags/flag_ar.jpg" onclick="this.form.submit()" tit...
right now I use a simple formmail script with some JavaScript form validation.
I think what I need to do is add to the JavaScript an if statement which says
if all of these fields validate go to this page, if only 10 fields validate go to this page, if those 10 fields don't validate, produce the standard error messages.
the problem i...
I have this silly problem:
I have a form with X fields and the possibility to add (visible = true) extra 'Cursisten' (contains 3 fields per cursist). I added 10 placeholders that will be enabled one after another whenever the last 'cursist' was filled in completely. This is because I enabled validation on the placeholder elements that a...
We have a Japanese user reporting that a form size is truncated (smaller size, not all controls are shown) on his Japanese machine.
In the windows form .designer.cs file, we have these settings:
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
Moreove...
Can someone confirm this: do I need to provide both a CSRF token and a Captcha in a submission form, or do the two more or less serve the same function (one can be used instead of the other)?
...
I know that since "native" delphi and delphi.net are different technologies it is unlikely to produce a tool that can migrate your old dfm forms to win forms for delphi prism. However is there a tool that facilitate such migration? Basically I have a "native" delphi project that I want to migrate to delphi .net, it is a desktop applicati...
Hi i have a few form fields i want the on click of button a the control to be sent to action 1 but
on click of button 2 it has to be sent to action 2. Currently i am using js to change the form action dynamically on click. but is there any other solution. I cant do the checking after submit in a same method thet have to be two different...
<td class="widht200">
<input type="text" name="agg" size="2" disabled="disabled"/> </td><td class="widht200">
<input type="text" name="agg" size="2" disabled="disabled"/></td><td class="widht200">
<input type="text" name="agg" size="2" disabled="disabled"/> </td><td class="widht200">
<input type="text" name="agg" size="2" disabled="disa...
So far it submits the email but no matter what I do it will not redirect (server errors) and I need to redirect it to a custom error page.
How would I modify this to make it work?
Original code:
# If any error fields have been found, send error message to the user. #
if (@error) { &error('missing_fields', @error) }
new code:
...
We have a java based enterprise web application. User enter / edit data using web forms and that data usually goes to the database.
Some user data is gathered just to send it through a web service. So the process is
enter data (which is turned into a xml document)
optionally edit data (which modifies above xml document)
send it to a ...
This is a question I had about working with the Kohana framework, though I imagine that this is something that could apply to MVC frameworks in general.
Let's say I have 2 objects/models, an animal object and a farm object, where an animal belongs to a farm, and a farm has many animals. I have a form for creating new animals, and I want...
Hey all,
I am just going to be honest and say that I hate building web forms. I am a programmer, not a designer but frequently get stuck building input forms for various web applications. I would really like to find a utility for doing this in a more visual manner. The problem I have found in the past with products like this (cough c...