By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,334 Members | 2,776 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,334 IT Pros & Developers. It's quick & easy.

How to use pHP

P: n/a
I have never used PHP berfore and my web server provided me with a PHP
script that I am to use with my form. My question is how do I use it? Do I
call it in my <FORM ACTION= > tag like I do with a cgi script that I use on
another site? DO I embeded it in my html live JaveScript? Also does my form
page need to end with a php entension?

T.I.A.
Jul 17 '05 #1
Share this Question
Share on Google+
7 Replies


P: n/a
I noticed that Message-ID: <pObGd.5622$nt.4721@fed1read06> from Dayton
contained the following:
I have never used PHP berfore and my web server provided me with a PHP
script that I am to use with my form. My question is how do I use it?


Ask them for instructions.

--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
Jul 17 '05 #2

P: n/a
Dayton wrote:
I have never used PHP berfore
Then you might find reading this worthwhile:

http://www.hudzilla.org/php/index.php
and my web server provided me with a PHP script that I am to use with my
form. My question is how do I use it? Do I call it in my <FORM ACTION= >
tag like I do with a cgi script that I use on another site? DO I embeded
it in my html live JaveScript?
Depends. Were there any instructions along with the script?
Do you understand the script? If it handles form data, as
you implied, then make it the action of your form. Play
around and see what happens.
Also does my form page need to end with a php entension?
No. On your server, however, PHP might parse only files
with the '.php' extension. You can tell it to parse other
files if you like, but that's extra work.
T.I.A.


Don't thank anyone yet.

HAGW!

--
Jock
Jul 17 '05 #3

P: n/a
Thanks for all your wonderful help. I would have never been able to think of
that on my own. Answers like this are what makes these message boards so
invaluable.


"Geoff Berrow" <bl@ckdog.co.uk> wrote in message
news:rt********************************@4ax.com...
I noticed that Message-ID: <pObGd.5622$nt.4721@fed1read06> from Dayton
contained the following:
I have never used PHP berfore and my web server provided me with a PHP
script that I am to use with my form. My question is how do I use it?


Ask them for instructions.

--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/

Jul 17 '05 #4

P: n/a
I noticed that Message-ID: <wkdGd.5627$nt.839@fed1read06> from Dayton
contained the following:
(Reordered to overcome top posting)
I have never used PHP berfore and my web server provided me with a PHP
script that I am to use with my form. My question is how do I use it?
Ask them for instructions.

Thanks for all your wonderful help. I would have never been able to think of
that on my own. Answers like this are what makes these message boards so
invaluable.


It's always a pleasure. :-)

Ask a clueless question, expect a clueless answer. How the hell are we
supposed to know how /your/ script works unless we see it? Sure we can
guess, but so can you. To get help here it pays to show that you at
least tried. And that means doing the obvious first.

--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
Jul 17 '05 #5

P: n/a
Geoff Berrow wrote:
<snip>
Ask a clueless question, expect a clueless answer.


"Ask a clueless question and expect a spoonfeeding" is the curse of
c.l.php :-(

--
<?php echo 'Just another PHP saint'; ?>
Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com/

Jul 17 '05 #6

P: n/a
i'm shocked at how unkind people can be when replying to posts for help
simply put a
<?
?>
around your php code

e.g.
<?
echo 'hello world;
?>

I think you can put it pretty much anywhere in your html because being
server side, the server evaluates it first before sending to the client
To use an existing php script, you probably want to just do
index.php (yes, make it end with php)
----------

<? include 'vars.php'; ?>
....other normal html stuff...
....

hope that helps,
Loki
"Dayton" <da*******@NOSPAMhotmail.com> wrote in message
news:pObGd.5622$nt.4721@fed1read06...
I have never used PHP berfore and my web server provided me with a PHP
script that I am to use with my form. My question is how do I use it? Do I call it in my <FORM ACTION= > tag like I do with a cgi script that I use on another site? DO I embeded it in my html live JaveScript? Also does my form page need to end with a php entension?

T.I.A.

Jul 17 '05 #7

P: n/a
David wrote:
i'm shocked at how unkind people can be when replying to posts for help
simply put a
<?
?>
around your php code


*please* use <?php ... ?> not just <? ... ?>

<? ... ?> is not valid XML (and so not valid XHTML, too)
and can be switched of using the short_tags php.ini directive

Note that every XML and XHTML file starts with

<?xml version="1.0" ?>

With short_tags on this would be interpreted by PHP and
you would get a

PHP Parse error: parse error, unexpected T_STRING in - on line 1

error message

--
Hartmut Holzgraefe, Senior Support Engineer .
MySQL AB, www.mysql.com

Are you MySQL certified? www.mysql.com/certification
Jul 17 '05 #8

This discussion thread is closed

Replies have been disabled for this discussion.