Hi everyone,
I'm just curious and was wondering how you guys handle it if you want to use the same html form and as far as possible the same php code to create and update an item.
Example:
On one page you can create a database entry with name, email address and age.
On a different(?) page you see the form fields filled with your data a...
In (JSF2 + jQuery) or in GWT:
What would be the best way to realize a multi-page form wizard with explicitly specified form controller "rules" running on the client-side?
The goal is:
form with 3 pages, each containing 'prev'/'next' buttons and finally 1 'submit' button.
all form items have unique ids for addressing/accessing them.
f...
I have a JSP with multiple forms as the "edit" view of an object. Now I want to send one of the forms, but there is an error in the validate method, because one of the input fields was not filled.
When the bean is validate and the error is found, Struts returns to the JSP which is defined as the INPUT for the bean in my struts-config.xm...
How to authenticate to remote site via HTTP and then submit one more form, accessible only for authenticated user?
What I'm trying to achieve:
Login to Mantis bug tracker: http://www.mantisbt.org/demo/login_page.php
Submit new issue: http://www.mantisbt.org/mantis/bug_report_page.php
Logout: http://www.mantisbt.org/mantis/logout_page....
I am not a professional web developer but I love web development as a hobby..
I am a student and I was asked to make a departmental event web site. I need to create HTML forms for user registration. I am aware of XSS Scripting attack and SQL Injection. But don't know how they exactly work. I am using PHP and MySQL on server side.
I am t...
I am having a strange issue with a collection_select I am using in an edit profile view in my rails application. The database IS being updated with the correct value, however the default value is not being selected for the select box when the user goes to edit their profile. I can not get a :include_blank => true or a :prompt => true t...
I replaced the type="submit" on my form with a type="button", to prevent form submits when the user presses enter. Will this prevent enter from submitting the form in all browsers?
...
I have a problem with a form. I need it to perform two actions with only one submit click. I've read that the best solution is a server-side script, but my knowledge of PHP is pretty limited, so I'd really appreciate any help.
The two actions I need to perform are:
Run a script that uploads a file and sends an email (action="uploader....
I've put together a little script that works fine in general, it just needs a minor fix and some Ajax code. Basically, it appends a couple of forms to each output line. Submission works properly, 2 POSTS and 1 GET. But I'd like it to happen without a page refresh, ergo the Ajax code. I've tried messing around with some but the multiple v...
Hello,
I've seen buttons that have some nice shape. I downloaded a couple of them to try on my application. I was expecting to get an image to be used as background for my buttons and textboxes. But, The downloaded file contains 2 images and a script. It looks to me like those shaped controls are aimed at replacing the html buttons and ...
I am learning jQuery right now and am looking to validate form fields with it.
The registration form in question is at http://taehee.pumpl.com/register.php
The basic code for the form field I made is:
<div id="register">
<form action="">
<fieldset>
<legend>Register</legend>
<ol>
<li><label f...
I am very new to writing in Perl.
I have a checkout pl which sends an email to the buyer with details of their order. How do I format in Perl to display the order in a "pretty" format such as tables, coloured background images etc like in an html page???
This is the section of code I would like to format into something more attractiv...
I have a html form that is basically vertical but i really have no idea how to make two text fields on the same line. For example the following form below i want the First and Last name on the same line rather then one below the other.
<form action="/users" method="post"><div style="margin:0;padding:0">
<div>
...
I have a POST in PHP for which I won't always know the names of the variable fields I will be processing.
I have a function that will loop through the values (however I would also like to capture the variable name that goes with it.)
foreach ($_POST as $entry)
{
print $entry . "<br>";
}
Once I figure out how to grab the variable...
This works flawlessly under Chrome, but in Firefox the fields don't populate until the SECOND time I hit submit on the page (after it comes back from the first time telling me invalid user/pass). What am I missing?
This is my code for the Greasemonkey script:
document.getElementById('loginBtn').addEventListener('click',
function (even...
I have a simple constant called "subjects" in my model Inquire.rb and I like to know if there is a simple way to use the position in the Ruby array rather than making a hash from it with ids or some more complicated array.
Can I do this?
i.e. instead of to_s as it currently does for the value in the select, I would want an integer indi...
Hello,
I have a form, and I want to pass it one parameter which must use to fill a widget.
I pass the parameter in my url :
url_for('myModule/new?parameter='.$myParam)
I have tried to take the parameter in my action and display it in my tamplate, but it doesn't work.
Action :
$this->param = $request->getParameter('parameter');
T...
I am trying to float a <button> to the right. the <button> is outside of <form> but is on the same line. For some reason this is not working in FF. I made my form background red and found out that the <button> is still in the <form> in FF even though its not! Every other browser works fine, the <button> is not in the <form>.
Screenshot:...
I have an interesting problem here...
<cfloop from="1" to="#form.countField#" index="i">
<cfif isdefined('form["semester#i#"]')>
<cfquery name = "insertCourses" datasource="cas_evaluation">
INSERT INTO courses (faculty, semester, course, students, hours, team_taught, first_time, ec_dl, online, course_revision )
VALUES ( '#form.nam...
I'm trying to change the innerHTML of a element based on the value of the previous element.
I have the javascript correctly grabbing the current value and everything works correctly in Firefox, Safari, Chrome and Opera. IE is a pain.
sample code:
<form action="soap.php" method="post">
<select name="circuitproduct" id="circuitproduc...