Yes, this is what XSLT does. I recommend consulting a basic tutorial on XSLT, eg the one at www.w3schools.com
A basic example of XSLT usage is:
<xsl:template match="nameofyourxmlelement">
<xhtmlelementsyouwant>
<xsl:apply-templates />
</xhtmlelementsyouwant>
</xsl:template>
-Rob
All you need to do is
<script><!--
history.go(-1);
//--></script>
However, how about passing the previous page's url in a hidden field in your form? This would unfortunately mean adding a line to all the pages on your site, but it has the advantage that you could do all the redirection stuff...
What about simply
echo "<option value=\"Male\"".(($sex=="Male")?" SELECTED":"").">";
echo "<option value=\"Female\"".(($sex=="Female")?" SELECTED":"").">";
Also, I would reiterate the comments above about putting quotes around your attribute values - it will save you time and effort in the...
Couldn't you just do something like this:
<xsl:template match="question">
<xsl:value-of select="../narrative[@id=current()/@narrative_id]" />
<xsl:value-of select="." />
</xsl:template>
Perhaps I'm missing something here, but this would seem to be a simpler...
What parser are you using? Server side or client side?
If you are using something like PHP or ASP, you can pass the uri strings in as parameters to your stylesheet
-Rob
How about
<xsl:template match="/">
<xsl:variable name="otherdoc" select="document('otherdoc.xml')" />
<xsl:apply-templates select="$otherdoc" />
</xsl:template>
Just a suggestion ...
-Rob
Your code is fine, but you need to store your frm object somewhere, otherwise it gets destroyed at the end of your procedure. Try declaring frm as a public, module level variable, rather than in the procedure.
-Rob
Altertatively, if you don't need the trailing characters at all in your php script, get MySQL to do the work for you:
SELECT LEFT(fieldname,10) AS shortfieldname
FROM yourtable;
-Rob
Are you starting your scripts with something like:
session_name("MySessionID");
session_start();
This needs to be on every page that requires access to the session vars. Also, are you using 'transparent' SIDs, or passing them manually? If manually, then adding the following to your...
if by 'x-tab' you mean you want to perform a 'crosstab' query, as in *cough* MS Access *cough*, I'm afraid that it's non-standard SQL. There are workarounds, however - try http://www.mysql.com/articles/wizard/index.html
-Rob
You need a scripting language to act between your webserver and MySQL. PHP is a good choice. If you haven't done so already, get PHP installed on your webserver. The main site (php.net) has some very comprehensive guidance for installing PHP and running scripts. The key functions for using...
A left join might be the solution you are looking for:
SELECT
holdings.holder,
letters.dates,
letters.rec_id,
correspondents.corr_id,
letters.number_of_letters,
correspondents.correspondent
FROM correspondents
LEFT JOIN letters ON (correspondents.corr_id=letters.corr_id OR...
Looks fine to me, but you will need to replace 'localhost' with the full url if you want people to use this from anywhere other than your server. Also if I assume that your 'one.html' is the place to go to on successfully logging in then you need to rearrange your last few lines:
if ( $num !=...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.