Bj wrote

...isn't getting processed by the Web server and therefore the php is
> being seen and displayed by the browser instead of being processed by
php....

I am calling the  form directly (though through the server) so you have
sorted that for me  -- thank you.

And the $_REQUEST   --  I had wondered from what I had digested of the
manual on this if that might be so.    And changing it to $_POST moves the
errors on a bit;  even  got ZA asking if Apache could send emails.

As you suggest I am wondering, not so much if it was tested, as if it was
rewritten rather than pasted into the book.   I have identified things like
'.' instead of'';' and things like this $_REQUEST which I haven't yet
confidence to challenge.

It is possible that it is an adaptation of a set of scripts he describes
creating for a phone directory site.   If he didn't then test it can be full
of errors of course.

Thanks Bj,

Joseph


> ----- Original Message ----- 
> From: "Smile-Poet"
>
> > The problem is that this (the 'value=""' ' entry) appears on the form:
> >
> > <?=$_POST['last_name'];?>
>
> This means php isn't seeing the page before it's sent to the browser.
>
> I bet you are running this on your local PC.  And I bet you are
> double-clicking the shortcut to open it, or just putting the page address
> into the browser (file://C:/pages/mypage.htm style of thing), or smething
> instead of browsing http://localhost/mypage.htm, so that when it first
shows
> up it isn't getting processed by the Web server and therefore the php is
> being seen and displayed by the browser instead of being processed by php.
>
> > And, although the form code has this
> >
> > <input name="req" type="hidden"  id="req" value="process" >
> >
> > and the script has this
> >
> > switch ($_REQUEST['req']) {
> >
> > I get an error message that 'req' is not defined.
>
> Looks to me like a dumb mistake by the script author proving (s)he never
> tested it after writing it..  Should be $_POST['req'] - there is no
REQUEST
> set of variables in php.
>
>
> ____ . The WDVL Discussion List from WDVL.COM . ____
> To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED]
>        Send Your Posts To: [EMAIL PROTECTED]
> To set a personal password send an email to [EMAIL PROTECTED] with the
words: "set WDVLTALK pw=yourpassword" in the body of the email.
> To change subscription settings to the wdvltalk digest version:
>     http://wdvl.internet.com/WDVL/Forum/#sub
>
> ________________  http://www.wdvl.com  _______________________
>
> You are currently subscribed to wdvltalk as: [EMAIL PROTECTED]
> To unsubscribe send a blank email to %%email.unsub%%
>
> To unsubscribe via postal mail, please contact us at:
> Jupitermedia Corp.
> Attn: Discussion List Management
> 475 Park Avenue South
> New York, NY 10016
>
> Please include the email address which you have been contacted with.
>


____ � The WDVL Discussion List from WDVL.COM � ____
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] 
       Send Your Posts To: [EMAIL PROTECTED]
To set a personal password send an email to [EMAIL PROTECTED] with the words: "set 
WDVLTALK pw=yourpassword" in the body of the email.
To change subscription settings to the wdvltalk digest version:
    http://wdvl.internet.com/WDVL/Forum/#sub

________________  http://www.wdvl.com  _______________________

You are currently subscribed to wdvltalk as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

To unsubscribe via postal mail, please contact us at:
Jupitermedia Corp.
Attn: Discussion List Management
475 Park Avenue South
New York, NY 10016

Please include the email address which you have been contacted with.

Reply via email to