View Single Post
  #4  
Old 09-04-2007, 11:52 PM
IcIshoot is offline IcIshoot

Join Date: Mar 2004
Location: Farmington Hills, MI
Posts: 1,473

Lol I don't mind answering questions - Though to be honest why wait for a responce when a google search could give you the answer quicker?


For your quotes you want to write out the <p align="center"> code with the qoute

So either something like

quote0="<p align='center'>My qoute</p>";

document.write(quote0);

(notice that I used in the align code in text for the variable)

Or

document.write('<p align="center">' + quote0 + '</p>');



For the search engine you need something in the action attribute so it knows what to do with it.

for example: a simple form to display a name using php:

html page form
Code:
<form action="submit.php" method="get">
<input name="p_name" type="text" />
<input type=submit />
</form>
submit.php code:

Code:
<?php
$p_name=$_GET["p_name"];

echo "Hello $p_name";
?>
I don't know if javascript can do a search - would need more info on exactly what your trying to do...


I have only ever used php for form actions - you may want to read up on html forms.

I know javascript can read the arguments passed to the page via the query string.


IcI
Reply With Quote