Displaying Form Results In A New URL?

Sep 24, 2009

I'm putting together the following website, HGV/LGV Training [URL] and have an issue regarding a form submit action. Basically I've used an open-source script for the search form so can't get any support from the Author.

My problem is that I need the search results to appear in a different URL but at the moment they just appear in a new DIV on the home page. My knowledge of JS is limited and can't get my head around what the OS script is doing. I think the relevant section of the search form is as follows:

<form method=post action=<?echo $_PHP_SELF;?>>
<input type="text" name="zipcode">
<? echo show_country_codes(); ?>

View 2 Replies


ADVERTISEMENT

Displaying Results In A Text Box?

Nov 2, 2010

I'm trying to get each of the if statements below in a text text box with the result depending on the answer of the equation. However i can't figure out a way to allow the user to click a button to to show the result in a text box.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>

[Code]....

View 1 Replies View Related

JQuery :: MySQL And Displaying Results In Table?

Feb 17, 2011

I want to do is let the user input a file,then read the contents send it to the server, loop over the inputs to query MySQL, return the results and display it in a user friendly,scrollable table?

View 1 Replies View Related

Jquery :: Displaying Results From Fetch.PHP File?

Feb 1, 2011

I have a PHP file which is called upon through AJAX. The PHP file "fetch.php" searches the database with the given JS variables, an x and y co-ordinate, through GET, and brings back the user id associated with those co-ordinates. So I then get that users information... I'm then trying to bring those PHP variables back into the AJAX call on the original page and display the results. Here's what I've got so far...

Javascript/jQuery
Code JavaScript:
<script type="text/javascript">
jQuery.fn.elementlocation = function() {
var curleft = 0;
var curtop = 0;
var obj = this;
do {
curleft += obj.attr('offsetLeft');
curtop += obj.attr('offsetTop');
obj = obj.offsetParent();
} while ( obj.attr('tagName') != 'BODY' ); .....

Everything is working fine, except one thing, I've check the php file and it does echo a username so I know there is a result being sent back from my query. It's just I can't seem to get the user_name_area and user_online_area to display the results from the fetch.php file. Am I parsing them correctly, do I have to assign them to a variable or is what I'm trying to do impossible? I've never attempted this whole json thing before and I seem to be having some problems with it.

View 5 Replies View Related

Ajax :: Displaying Results Of Call In A Pop Up Window?

Aug 4, 2010

I've got a page that lists a bunch of info in a large table. In each row is a link, and when that link is clicked on, an ajax call fires that returns detailed info on the item in that row. I usually display the html just to the right of the table, but the table has gotten too large. I need to display the info in a pop up now. The only thing is, how do I get the results of my ajax call into a pop up window? I've been having an awful time getting this to work.

I'm using JQuery to make the ajax call, what can I put in my success of complete event to create the pop up using the data the ajax call returns?

View 5 Replies View Related

JQuery :: Using .load() Results In Loaded Content Displaying Twice

Oct 5, 2011

I have successfully loaded an element of content from another section of our website on a page, but for some reason it is firing .load() twice and displaying the section of content twice, stacked on top of each other.

<script type="text/javascript" src="/js/jquery.162.min.js"></script>
<script type="text/javascript">
$(function() {
$('#site_navigation').load('/store/ .menu_div', function() {

[Code]....

View 2 Replies View Related

Displaying Results In Sets Of 5 With A Next Button For Friends.getAppUsers?

Sep 18, 2011

I have been searching for a way to display facebook api friends.getAppUsers in set of 5. I am able to do this if i hard code it but I cant seem to find and comprehend a method to do this dynamically.

What i want to achieve is, if i have 43 friends using the application, the code should allow users to view this result in set of 5.

[Code]...

View 4 Replies View Related

Copying Form Results To A Second Form Text Area

Jan 27, 2010

1. First form on the page has questions with radio buttons. Each radio's value is a number so a score is assessed at the end.

2. Second form on the page is an email the admin form, which duplicates the score in one field.

Question: I would like to know how to write the form results to a text area in second form. However, I can't do this for one, and secondly, the value is a number, can I use labels? Here's the code I've 'made up' so far...

[Code]...

View 1 Replies View Related

Display Form Results On The Same Page As The Form?

Aug 4, 2010

i want to display the form results on the same page. how do i do that? i have radio buttons, checkboxes, password and texts in my form.

View 14 Replies View Related

Formatted Form Results

Mar 27, 2006

I have an appointment form with NAME, DATE, TIME, LOCATION. I want to add another set of these same field fields if I have more than one appointment to enter so all appointments are subitted on one form.

I also want the results to be in a layout other than the generic HTML or text layout used by Frontpage. Hope this is clear enough. Don't know if this is possible.

View 4 Replies View Related

This.form.elements.length Results In 0

Apr 1, 2006

I am trying to do a simple check-all / un-check-all checkbox system.
All of the solutions I have seen use "this.form.elements.length" or a
variant of this.

My scripts don't work because "this.form.elements.length" always
returns 0. Example:

document.write(this.FormName.elements.length);

displays "0"

Am I missing something obvious here?

View 3 Replies View Related

Strange Results When Submittng Form / Fix It?

Sep 14, 2009

I have a form that is submitted via jquery into a mysql database using php code...

View 1 Replies View Related

Form Results In Opening Url Page?

Feb 18, 2011

I need to change the result to opening a url page. This script results in a value and I need the result to be open a url page.

<SCRIPT language="Javascript">
nome = new Array(4);
nome[0] = new Array(4);

[code]....

View 4 Replies View Related

Sending Form Results To Webpage?

Apr 7, 2011

I have a form with results and ID's for each field, I can get an alert to popup with the results, is there anyway to display this on the webpage?
This is what I have so far:

document.getElementById('result').write(account.value +" "+ rep.value +" "+ error1.value +" "+ fix.value);

along with this in the HTML:

<p id='result'></p>

View 2 Replies View Related

Passing Results Of This Sq Ft Converter To A Form?

Jun 15, 2011

Ive been trying to pass the results of this converter to a form on a seporate url - I have looked into this but cant seem to pass a "readonly" Var. have a 2nd field that would work out a percentage e.g a + VAT.

[
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">

[code]....

View 4 Replies View Related

The Results Of A Form To Open In A 'pop Up' Window?

May 6, 2010

I found an article [URL] that allows a user to search Google directions from a web page. It works very well, however is it possible to have the resulting page open in a popup window?

View 3 Replies View Related

Form Results Sent To Email Variable

Oct 20, 2005

I am trying to create a page that sends user contact information to the appropriate email address. Depending on where the user lives, say California, the results will be sent to the person assigned to California, such as "bob@mail.com (not a real email address).

Right now, I am only working with three states until I get the page up and running:

California (CA = bob@mail.com)
Texas (TX = mary@mail.com)
New York (NY = john@mail.com)

Also, I need the results sent by the form, not as an actual email. I already have this set up and working. I just need to figure out how to pass the variable. Any suggestions? Code:

View 3 Replies View Related

Form Script Not Returning Results

Aug 14, 2009

I am having some trouble with this form .It is not returning any errors, it is simply not returning the results of the form fields.

The clear form works, the redirect works, the layout is fine, just no results. I am just beginning to learn Javascripts and I know this is a pretty basic script.[code]...

View 4 Replies View Related

JS Form In Online Questionairre - Make A Log Of The Results?

Mar 26, 2009

I've got a couple of online self-assessment forms on my site.They go as follows:

// total score
var total = 0;
// number of questions

[code]....

View 7 Replies View Related

Output Form Results To New Html Page?

Jun 11, 2009

I an wanting to make a form where all of the text fields will be output in html table format to a new webpage. For example, Name, Age, Location, etc. When the user clicks submit I want to write a new html file based on the user's name (for exmaple chris.html). This seems like it would be fairly easy to do. Can anyone give me example coding to get me started?

View 2 Replies View Related

Showing The Results Of A Form Submission In A New Window

Oct 2, 2004

I use php includes to display a small form on a web page.The form has only about 2 fields,and when the user hits submit I want the form to be submitted but at the same time I dont want the page to be redirected.Instead I want a small window to pop up saying thank you or whatever.To see a demonstration of what I want to do,please go to download.com ,scroll down to the bottom of the page and you'll see a poll.When you make a vote a new window pops up showing the results of the vote but you arent moved from download.com's homepage to any other page in the parent window.How can I acheive that?I'm using this code right now:

<script language="JavaScript">
function showpoll() {
window.open('manage.php','manage','width=260,height=360,status=no,scrollbars=yes,resizable=no,toolbar=no');
document.forms["form1"].submit();
}
</script>

<form method="post" action="manage.php" onSubmit= "showpoll();" name="form1">
When I hit the submit button on the form a new window does pop up containing manage.php but it doesnt submit the form since manage.php doesnt give the message that its supposed to give when the form is submitted.It instead asks me to input all the fields.While the parent window is redirected to manage.php and it shows the message that its supposed to show when the form has been submitted.I hope I made myself clear.

View 1 Replies View Related

Dynamic Form Text Results Script

Oct 9, 2002

Does anyone know if there is a script which can do the following?

Contains 2 Drop down menus, depending on which items were picked from menu 1 and menu 2 - a text result would appear in a box next to the 2 drop down menus.

Its important the drop down menus and text result are set in a table so that it can be moved around to anywhere on a webpage.

I am certain i did see this script somewhere but now i would like to use it i can't find it anywhere.

If anyone is willing to make the script for me then i could give them a banner ad on my website for a couple months in return?

View 11 Replies View Related

Only Submit Positive Results In Order Form?

Aug 13, 2010

I would like to be able to make it so that an order form only submits positive results.I have modified this form for my friends website. She has 50 different products that she makes (different sizes and colors). The form submits results for things ordered but also for things not ordered.

PROD_yellow_3.00=
PROD_green_3.00=
PROD_blue_3.00=

[code]....

View 17 Replies View Related

JQuery :: Load Results Of Submitted Form To Specific DIV?

Nov 20, 2011

How can I target a specific <div> to display the result of a form? I would like to be able to specify the target div on a per-form basis, and have the target independent of the <div> that contained the actual form.

So for example I may have a form in <div id="left"> <form>.....</form></div>, that I want to post the data to somepage.php, and load somepage.php into <div id="right">

View 1 Replies View Related

Ajax :: Form Retrieves Results From A Mysql Database

Jun 22, 2011

This form retrieves results from a mysql database. It works fine but when I click submit it shows the result only for a second. When I hold down submit the result stays there. How do I get the result to stay on the screen after I hit submit? Even better how do I get it to spit out results without having to hit a submit button or press enter?

View 15 Replies View Related

Pass Select Menu Results To A Form Field?

Feb 18, 2009

I am developing a small app in Joomla! where I need to sequentially number file folders. On the page where I add new folders I have a select menu to select the type of folder. In this case, either Action, Reference, or Archive. What I want to have happen is after I select the type of folder, I want to enter the next available number in the form field. I realize to do this without resubmitting the page I need to use javascript and onchange. The problem is I am almost clueless when it comes to javascript (I am working on it though) so I need some help. This is what I have.

Code:

<fieldset class="adminform">
<legend><?php echo JText::_( 'Folders' ); ?></legend>
<table class="admintable">

[code]...

I assume I have to pass my php array into a javascript array then call that based on my select menu. Only I have no clue how to go about doing that.

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved