473,387 Members | 1,903 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

html forms xml and xml

So I have been working on a little project and with the help of some
folks here I have the xml and xsl part working nicely.

Here is the link to the xml;
<http://ocgweb.marine.usf.edu/c10B.xml>
and the xsl;
<http://ocgweb.marine.usf.edu/testds.xsl>

As you can see I can change which Mooring Info is displayed by changing
the select on line 9 of the xsl sheet.

So I turned to working on my form where a user would select a specific
mooring and then submit and the action= would pass the post value of the
submit to the c10B.xml. Of course I found that this doesn't work and I
googled all over the place trying to find a way to pass this single
value to the xsl sheet so it knew which mooring to display. Then it
occurred to me that I am not telling it to pass the value to the xsl
sheet because I am telling it to go to the xml page. So I am a little
confused here as to how exactly this would work and was hoping that
someone might explain it to me and maybe point me in the right direction
as to how I can accomplish this task. Keeping in mind that anything
beyond basic right now will look like rocket science to me.

Thanks,
Patrick
--
Patrick A. Smith Assistant System Administrator
Ocean Circulation Group – USF - College of Marine Science
http://ocgweb.marine.usf.edu Phone: 727 553-3334

The trouble with doing something right the first time is that nobody
appreciates how difficult it was. - La Rochefoucauld
Nov 9 '06 #1
2 1164
Patrick wrote:
So I turned to working on my form where a user would select a specific
mooring and then submit and the action= would pass the post value of the
submit to the c10B.xml.
A static XML document cannot process your form values when the browser
submits them, instead make the action point to a PHP page (I think you
said earlier you have and use PHP on your server) that processes the
form values the browser submits (using $_GET for method GET, $_POST for
method POST), then run the transformation server side with PHP's XSLT
processor API where you can pass in parameters before a stylesheet is
being executed.
See <http://www.php.net/manual/en/ref.xsl.phpfor the PHP 5 API to its
XSLT processor.
--

Martin Honnen
http://JavaScript.FAQTs.com/
Nov 9 '06 #2
Martin Honnen wrote:
Patrick wrote:
>So I turned to working on my form where a user would select a specific
mooring and then submit and the action= would pass the post value of
the submit to the c10B.xml.


A static XML document cannot process your form values when the browser
submits them, instead make the action point to a PHP page (I think you
said earlier you have and use PHP on your server) that processes the
form values the browser submits (using $_GET for method GET, $_POST for
method POST), then run the transformation server side with PHP's XSLT
processor API where you can pass in parameters before a stylesheet is
being executed.
See <http://www.php.net/manual/en/ref.xsl.phpfor the PHP 5 API to its
XSLT processor.

Thanks Martin. I will take a look at this and see what I can work out.

Patrick
--
Patrick A. Smith Assistant System Administrator
Ocean Circulation Group – USF - College of Marine Science
http://ocgweb.marine.usf.edu Phone: 727 553-3334

The trouble with doing something right the first time is that nobody
appreciates how difficult it was. - La Rochefoucauld

Nov 9 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Bob Nolty | last post by:
Hi all -- I'm trying to create a hidden form in the document using only Javascript -- I don't know what form I want until the user clicks a button -- I tried the following code, which does...
4
by: VK | last post by:
09/30/03 Phil Powell posted his "Radio buttons do not appear checked" question. This question led to a long discussion about the naming rules applying to variables, objects, methods and properties...
22
by: Luke | last post by:
Elements with name attribute: form, input, textarea, a, frame, iframe, button, select, map, meta, applet, object, param, img (if you know more reply...) Methods of addresing html elements:...
2
by: Hazzard | last post by:
I just realized that the code I inherited is using all asp.net server controls (ie. webform controls) and when I try to update textboxes on the client side, I lose the new value of the textbox when...
6
by: William F. Zachmann | last post by:
We've got a project going that involves moving an old web site with a massive dll written in C++ that produces most of the output from a SQL 7.0 data base on NT4 onto IIS on Windows 2003 Server...
4
by: Sathyaish | last post by:
I am no JavaScript progammer, and unfortunately am having to babysit an old code base that has a lot of JavaScript in it. I have two questions: (1) Can two HTML controls have the same name? It...
5
by: nick | last post by:
I need to create a simple asp.net application that use password protect some html pages. The html page provider doesn't know asp.net. And the host doesn't allow me to create user accounts. ...
7
by: thersitz | last post by:
I can't seem to get my html form to submit properly from within a web form. Here's my form tag syntax and some delivery hidden fields. <form id="myForm"...
19
Atli
by: Atli | last post by:
Introduction At some point, all web developers will need to collect data from their users. In a dynamic web page, everything revolves around the users input, so knowing how to ask for and collect...
1
by: since | last post by:
I figured I would post my solution to the following. Resizable column tables. Search and replace values in a table. (IE only) Scrollable tables. Sortable tables. It is based on a lot...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.