How I call a Php code from HTML code

How I can call a *.php file from my html code. By calling Directly in

Page 1 of 1

4 Replies - 3697 Views - Last Post: 23 December 2008 - 06:28 AM Rate Topic: -----

#1 pramodsh21  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 23-December 08

How I call a Php code from HTML code

Post icon  Posted 23 December 2008 - 05:33 AM

<html>
<head>
  <title>Basawa's Book Catalog Search</title>
</head>

<body>
  <h1>Basawa's Book Catalog Search</h1>	 
  
  <form action="results.php" method="post">	  
	Choose Search Type:<br />
	<select name="searchtype">  
	  <option value="author">Author</option>
	  <option value="title">Title</option>
	  <option value="isbn">ISBN</option>		  
	</select>
	<br /> <br />
	Enter Search Term:<br /> 
	<input name="searchterm" type=""text" size="40"/>
	<br /> <br />
	<input type="submit" name="submit" value="Search"/>
	<input type="button" value="close Window" onclick="window.close();">	 
  </form>	   
</body>
</html>

:blink:


***Added code tags***
--jjsaw5

Is This A Good Question/Topic? 0
  • +

Replies To: How I call a Php code from HTML code

#2 chili5  Icon User is offline

  • D.I.C Lover

Reputation: 20
  • View blog
  • Posts: 1,144
  • Joined: 28-December 07

Re: How I call a Php code from HTML code

Posted 23 December 2008 - 06:11 AM

What's your question?

I just see a bunch of code.
Was This Post Helpful? 0
  • +
  • -

#3 jjsaw5  Icon User is offline

  • I must break you
  • member icon

Reputation: 90
  • View blog
  • Posts: 3,060
  • Joined: 04-January 08

Re: How I call a Php code from HTML code

Posted 23 December 2008 - 06:11 AM

Please post your question and content in your post and not in the title.


:code:
Was This Post Helpful? 0
  • +
  • -

#4 baavgai  Icon User is offline

  • Dreaming Coder
  • member icon

Reputation: 5929
  • View blog
  • Posts: 12,851
  • Joined: 16-October 07

Re: How I call a Php code from HTML code

Posted 23 December 2008 - 06:14 AM

View Postpramodsh21, on 23 Dec, 2008 - 06:33 AM, said:

How I call a Php code from HTML code,

Not a lot to go on here.

Short answer: POST
Was This Post Helpful? 0
  • +
  • -

#5 ~NJ  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 8
  • View blog
  • Posts: 52
  • Joined: 22-December 08

Re: How I call a Php code from HTML code

Posted 23 December 2008 - 06:28 AM

If you're trying to run PHP code or execute some PHP code from a HTML page, it won't work. There's a reason why there are .php files...
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1