Forums

This topic is locked

php code - what is it?

Posted 02 Jan 2003 03:28:20
1
has voted
02 Jan 2003 03:28:20 Kim Polley posted:
Hello

I'm re-skinning (new look and feel) a website but one of the pages is a 'tell a friend' form which is created in php3 - what is this exactly?

www.peaceatwork.com/recommend/index.php3

Can I create the same thing using Dreamweaver MX or do I need someone to code that page for me?

I can create the page in Dreamweaver, however, I can't get the form to forward to an anonymous address.

Thanks

__________________________
B O H E M I A N_B E L L E
www.bohemianbelle.com.au

Replies

Replied 02 Jan 2003 04:02:09
02 Jan 2003 04:02:09 Owen Eastwick replied:
It's a scripting language, same as VBScript, JSCript etc., you should be able to re-design the page provided you leave all the form elements and script in place or copy it into your new page with the script in a similar position relative to the HTML, in the header for example. Your page must also have the extension .php3 eg. PageName.php3

Here's some more info: www.devshed.com/Server_Side/PHP/Introduction/page1.html

Regards

Owen.

Multiple Parameter UD4 / Access 2000 Database Search Tutorial:
www.tdsf.co.uk/tdsfdemo

Edited by - oeastwick on 02 Jan 2003 04:05:31
Replied 02 Jan 2003 05:36:04
02 Jan 2003 05:36:04 Kim Polley replied:
Hello

Thanks for your help, that's a great resource the url you sent through.

I gave the cut and paste option a go and created the same directory / name path as the existing site that is up, however, this is what happens...

www.users.bigpond.net.au/bohemian/tell_a_friend.htm

Why is that?

When I save the file as .php in Dreamweaver it defaults to .php, I changed it to .php3 to match what is up there at the moment, is that correct?

Thanks

__________________________
B O H E M I A N_B E L L E
www.bohemianbelle.com.au
Replied 02 Jan 2003 12:39:49
02 Jan 2003 12:39:49 Owen Eastwick replied:
I'm guessing a bit now, I don't actually code in PHP, so if someone out there knows different please correct this.

It may be that the server the new site is on is not set up to run PHP, refer to that link again. Like other scripting languages PHP needs some components insatalled on the host server so that the code is interpreted and processed at the server before the results are displayed in the clients browser. It looks to me as though the script is simply being displayed as is. Is it possible to test the page on the existing site's server? That would quickly confirm that one way or the other.

Regards

Owen.

Multiple Parameter UD4 / Access 2000 Database Search Tutorial:
www.tdsf.co.uk/tdsfdemo

Reply to this topic