Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PHP form does not show in html page. 1

Status
Not open for further replies.

jlockley

Technical User
Nov 28, 2001
1,522
US
I found this script which answers a few of my prayers.

It allows potential candidates to send me resumes.


I have set it up on my server and have put together a basic page, just to check, following the instructions with my very elementary and rusty PHP skills.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" " by Schweig Germany-->

<head>

<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Contact Chefs Professional Agency</title>
<meta name="contact form" />
<script type="text/javascript" src="</head>
<body>

<?php
$contact_form = 1; // set desired form number.
$contact_form_path = '/home/jll/public_html/contact-files/';
require $contact_form_path . 'contact-form-run.php';
?>
</body>


page at does not show php file.

It should work. I get no form. What very simple and stupid mistake am I making? Thank you!
 
for a start the file should be a php file, not an html file.

unless you are sending all html files through the php interpreter, of course.
 
we try that. As I said, it's been a while. Thx.
 
That's the ticket. I thought you could include PHP in an HTML document. Works either way for me, I guess. Thank you.
 
you can include php in an html document. but you need to tell the webserver to parse the html document for php.

you do this either by setting the extension of the html document to php or adding html to the list of extensions to be parsed by php in the httpd.conf file (assuming apache).
 
Thank you! It's all coming back slowly.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top