× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



On Mon, 01 Jun 2009 12:00:05 -0500, web400-request wrote
Send WEB400 mailing list submissions to
web400@xxxxxxxxxxxx

To subscribe or unsubscribe via the World Wide Web, visit
http://lists.midrange.com/mailman/listinfo/web400
or, via email, send a message with subject or body 'help' to
web400-request@xxxxxxxxxxxx

You can reach the person managing the list at
web400-owner@xxxxxxxxxxxx

When replying, please edit your Subject line so it is more specific
than "Re: Contents of WEB400 digest..."

*** NOTE: When replying to this digest message, PLEASE remove all
text unrelated to your reply and change the subject line so it is meaningful.

Today's Topics:

1. This seems so simple (Shannon ODonnell)

----------------------------------------------------------------------

message: 1
date: Mon, 1 Jun 2009 10:54:32 -0500
from: "Shannon ODonnell" <sodonnell@xxxxxxxxxxxxxxxxxxxxxxxxx>
subject: [WEB400] This seems so simple

It seems like it would be very simple but for some reason I'm going around
and around on this.


I'm actually surprised that the i5_connect works Shannon - it should really be
referencing either localhost or the IP equivalent 127.0.0.1 as it has to
connect internally from the PASE side to the IBM i side. Is it working or ???

In terms of the approach I'm finding it really hard to see what you're trying
to do because all of the form detail is being echo'd.

It seems to me for that for the task as described you would normally use an
Ajax call since you're trying to modify a form that's on the screen. However
if you just want to repaint the screen with the data, the way I normally do it
is to have the program call etc at the start of the code, conditioned by
whether the form was submitted or not. You seem to be using a hidden field for
that - I normally use the value from the submit button

e.g. <input type="submit" name="submit" value="submit" />

and test it at the top of the script with

if (isset($_POST['submit'])) {

This seems to be a standard PHP approach. If the condition is true - I do the
program call etc. and set the appropriate variable(s). Then the Form follows
and looks like this:

?>

<form>
...
<td> <input type='text' name='whatever' value=' <?php echo $inpVar ?> '>
<td> <?php echo $outVar ?> </td>

...

Note the PHP island ended _before_ the form definition. This way if you use
the PHP/HTML editor you can see the form and edit it. Not as good as using
Smarty or Zend Form or ... but closer to our old friend DDS! The "mini
islands" appear as the data or as a graphicx depending on the editor.

Hope this helps.


Jon Paris
Partner400
www.Partner400.com


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.