<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
My validation is in a separate script...the one that will then do the
additional work but I prefer doing it as you describe, because I want
to stay in pmwiki until I get everything verified and done. HoweverI
didn't find any obvious examples in the online documentation.  If you
can point me to an example, my validation needs for this page are very
simple (are three of the fields not blank?) before heading off to the
processing script.<br>
<br>
I was also thinking of asking for a good starting point for programming
within pmwiki.  When I started with pmwiki a couple of years ago I
didn't know my way around PHP, but got pretty good with straight up
pmwiki.  Now I have better PHP chops, so I'm trying to figure out
where, if anywhere, one begins to get good at extending pmwiki within
the bounds of "how things are done here".<br>
Doug<br>
<br>
Peter Bowers wrote:
<blockquote
 cite="mid:784f80490906220754u4c0d6cc8q4aedf9c6140f4231@mail.gmail.com"
 type="cite">
  <div class="gmail_quote">On Sun, Jun 21, 2009 at 1:59 PM, Doug
Johnson <span dir="ltr">&lt;<a moz-do-not-send="true"
 href="mailto:doug@asknice.com">doug@asknice.com</a>&gt;</span> wrote:<br>
  <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
    <div bgcolor="#ffffff" text="#000000">I've read through a lot of
the online documentation.� I've got my form
done and it is lovely.<br>
I am following the advice to do validation server side.� I am calling a
php program that does the validation and then will pass the entered
data elsewhere.<br>
My problem is that I can't see how to go back to the calling page if
the data doesn't validate.� According to me, it would be a post back to
the pmwiki page with all of the passed variables going back in fields
and then reading from the $_SESSION vars (which I have working fine,
thank you).<br>
But I don't know how to do the post back to the page without loading up
a form and requiring the user to click on it.<br>
    </div>
  </blockquote>
  <div><br>
It sounds like you have your validation in a standalone script rather
than something integrated into pmwiki.� Typically the way this is
handled is by integrating your validation script with pmwiki via a
custom action (?action=myvalidatingaction) or via some sort of markup
located on a given page.� Then your form has a target URL which
specifies this action or the appropriate page.<br>
  <br>
Doing it as a markup has the advantage that you can place your error
messages on your page without having to modify any code.<br>
  <br>
Submitting to the *same* page where your form is located ({$FullName})
has the advantage of making it very easy to leave your fields filled in
if the user made a mistake and they need to edit a field or two...<br>
  <br>
In your validation script if everything looks good then you can store
your data appropriately and simply redirect to another page.<br>
  <br>
I don't know if that helps or not...� The important point is that life
will be a lot easier working within pmwiki rather than working
independently and trying to pass stuff back and forth via $_SESSION
(typically $_SESSION is not used at all in forms).<br>
  <br>
-Peter<br>
  </div>
  </div>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<font color="#000000" face="Arial" size="2">Doug
Johnson</font><br>
<font color="#cc0000" face="Arial" size="2">
"When people start being nice to me, I just know it's going to hurt." -
Morrie </font><br>
<font color="#000000" face="Arial" size="2">216-502-3372
Direct voice<br>
602-865-7041 Direct eFax<br>
</font>
</div>
</body>
</html>