How do I pass information between PHP pages?
For example, I have a PHP script to process login input from a form, and then a separate PHP script to process further input for the user. However, I want the second PHP file to receive the input from the login form. In essence, I do not want the same script being run twice for the login.
...
I have a state field that stores the value as 2 characters. For example, Alabama is saved as AL, Alaska is saved as AK, Arizona is saved as AZ, etc. In the show.html.erb, how do I display the long name for the state such as Alabama instead of just showing AL? Is this possible or should I just store the long name in the database such as A...
I have a Django Form that looks like this:
class ServiceForm(forms.Form):
option = forms.ModelChoiceField(queryset=ServiceOption.objects.none())
rate = forms.DecimalField(widget=custom_widgets.SmallField())
units = forms.IntegerField(min_value=1, widget=custom_widgets.SmallField())
def __init__(self, *args, **kwargs):
...
Really 2 questions. Why is it that these bits of code dont validate to XHTML 1.0 Strict. XHTML 1.0 Strict is a project requirement.
Line 2 causes the problem
document type does not allow element "input" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag.
<for...
I have a readonly data logging window that I implemented using the RichTextBox control. I'd like to be able to disable the autoscrolling that happens when the user clicks in the control so that the user can select a specific log for copy/paste operations or whatever. However, as soon as the user clicks in the RichTextBox, it automatica...
Edit: if someone could also suggest a more sensible way to make what I'm trying below to happen, that would also be very appreciated
I'm building an multiPage form that takes a quantity (of product) from a POST method, and displays a form sequence relying on that number. when the user goes to the next page, the form is supposed to colle...
I have a form with a select field and a div i wish to update with a value depending on what the user selects.
Example:
<select name="mysel" id="msel">
<option value="test1">Test1</option>
<option value="test2">Test2</option>
<option value="test3">Test3</option>
</select>
<div id="myresult"></div>
I would like the div to ...
Hi,
I am trying to get all the URLs (and then get the data) that are generated by the form on this page - http://www.vodafone.in/_layouts/servicecallertunes.aspx with little success.
I have installed HTTP Headers(0.14) addon on Firefox 3.0.5, Ubuntu. But the resultant URL is very weird and pretty long.
Eg:
POST /_layouts/servicecall...
I'm trying to set the maxlength on input fields dynamically using JavaScript. Apparently that is a problem in IE, and I found part of the solution.
$("input#title").get(0).setAttribute("max_length", 25);
$("input#title").get(0).setAttribute(
"onkeypress",
"return limitMe(event, this)");
...
I would like my form to output something like this:
Name: ___________
Company: ___________
Interested in
-------------
Foo: [ ]
Bar: [ ]
Baz: [ ]
That is to say, I would like to have the 'Interested In' title inserted in the middle of my form output.
One way of doing this would be to write out the template code for each field, and i...
From a design and usability perspective is it best that an edit page mimics the layout of the view page?
Our view page is very dense. The data is tightly packed together, but when editing there are going to be extra controls next to each entry field. If we leave the layout the same it will be overly crowded. Will this cause problems wi...
In MOSS 2007 (SharePoint), is there any way to access the current SPField from inside a ListFieldIterator rendering template?
...
Hello
I am getting the an error on the following code in one of my partial views
<% form_for (@user) |form| %>
SyntaxError in User#edit
Showing user/_user_edit_form.html.erb where line #1 raised:
compile error
../app/views/user/_user_edit_form.html.erb:1: syntax error, unexpected ';'
_erbout = ''; form_for (@user) |form| ; _erbout...
In Django / Pinax, I've come across the login form which starts like this :
<form class="login" method="POST" action="">
It works perfectly well. So I assume that either some java-script or something in the Django framework is putting the value into the action attribute. So my questions ;
a) How does Django insert the action?
b) Wh...
I need to have a click to edit element on a page, that will in turn invoke an instance of the jQuery UI Datepicker.
Currently, I'm using JEditable to provide the in place editing, which is working fine. However, I have a date control input that I would like to have appear as a calendar, which is where the fun starts.
I've found a Comm...
Hi there!
I'm completely cluesless with that one:
On http://wurzelimperium.de Opera stopped saving passwords via Wand. It's just not triggered anymore. i've tried changing the form by providing a real "submit" inputfield that should be activated via javascript. this doesn't help, any ideas?
...
How can I dynamically create a form element and provide it with dynamically incremented input name attributes? I'm working with jquery but am open to any solutions.
I have a div that looks like this:
<div>
<input type="text" name="title1" />
<input type="text" name="body1" />
<select name="photo1" size="1">
<option value="0">foo</o...
I'm currently styling form elements with a custom CSS class to style text inputs differently, as in:
$submit = new Zend_Form_Element_Submit('login');
$submit->setLabel('Log in')
->setAttrib('class', 'submit');
And
$username = new Zend_Form_Element_Text('username');
$username->setLabel('Username')
->setAttrib('class', 'textinp...
Well i'm having a problem which appeared i think when i rollbacked a .form file from subversion.
The NB 6.1 can open the .form but when i try to save the file the IDE throws an out of memory exception.
In NB 6.5 i can open and save the file but the IDE is behaving very strange:every 1 min or so freezes for 20 sec and then unfreezes.
O...
Here is the field declaration in a form:
max_number = forms.ChoiceField(widget = forms.Select(),
choices = ([('1','1'), ('2','2'),('3','3'), ]), initial='3', required = True,)
I would like to set the initial value to be 3 and this doesn't seem to work. I have played about with the param, quotes/no quotes etc... b...