Home   Help Search Login Register  

Author Topic: Questions  (Read 2135 times)

0 Members and 1 Guest are viewing this topic.

Offline OFPWiZard

  • Members
  • *
Questions
« on: 10 Apr 2003, 00:16:47 »
Whats the font name of Flashpoint inyour banner?

Nice site by the way.

Also question to the webmaster (web builder)
Question:
How to you make a link or button (HTML Code, don't care) be active so when you press it it will send the page to a email address.
EX:  Like a join page and/or register page.  Submit Botton.  After the person fills out the boxes and then he/she presses the submit button it will send the page to the email in the link.  I looked and search in the help of Dreamweaver and looked for html codes but nothing helped me.

If you wouldn't mind by giving me a link to help me find these answer or tell me how to do one of these question i would be greatful.  

-How to make a button be a submit button to have it send the page to a email address.
-Search Engine (I think its a Java Script)
-Regerster Page (Login Name and Password) <---- to protact the site.
« Last Edit: 10 Apr 2003, 00:17:08 by OFPWiZard »

_hammy_

  • Guest
Re:Questions
« Reply #1 on: 10 Apr 2003, 02:19:57 »
You should search on the internet about php, html, javascript, and perl.

about their logo, what they probably did is take the logo from the ofp splash screen and they edited it.

also, some of those questions are a bit advanced for a new person to html, php, etc. so if i were you, I would start out with the basics first.

also, check out these forums also for some help of html, and etc. www.vbforums.com
« Last Edit: 10 Apr 2003, 02:21:58 by HAMMY »

Offline OFPWiZard

  • Members
  • *
Re:Questions
« Reply #2 on: 11 Apr 2003, 23:43:30 »

Offline snYpir

  • BIS Team
  • ****
  • OFPEC Jedi Master
    • OFPEC
Re:Questions
« Reply #3 on: 12 Apr 2003, 00:10:33 »
The answer to most of your questions is PHP.

PHP allows us to do pretty much anything, from sending emails from our server right through to maintaining a back-end database containing peoples usernames and passwords.

PHP must be set up on your server, and then all of your pages must include PHP code to access the database.

I can provide more information on PHP works if you like... ???

http://www.php.net

Here is a speel I wrote up awhile ago... i don't know if you already know this... it was written for someone who was learning PHP.

snYpir's PHP Quick Start Guide

To code PHP you need the following:

* FTP program and access to the backend of the site
* A good text editor (i recommend textpad - www.textpad.com with the PHP4 syntax definition file)
* MySQL control center, available at http://www.mysql.com/downloads/mysqlcc.html

Ok, so you should understand what HTML does. HTML pages sit on the server, and when a browser loads that page the various html tags cause the browser to display certain things. A HTML page, in it's own right, is not dynamic at all. It just sits there, and must be manually updated.

A HTML page that has embedded PHP however, is considered dynamic, because PHP will take information from the *database name* database and enter it into the HTML page returned to the browser.

HTML and PHP are intertwined - PHP is embedded in HTML. You'll see on the site that we only use PHP pages. When your browser loads a PHP page, the PHP agent on the server will automatically process the page, returning to the browser a page that appears to be HTML - the agent automatically processes the embedded PHP and the browser doesn't know that there ever was PHP in the page.

Suppose you have a HTML page:

<html>
Hi there
</html>

Embedded PHP looks like this:

<html>
<?php echo "Hi there" ?>
</html>

PHP code goes within the <?php and ?> tags. This code is C syntax, but is much more forgiving. It can span multiple lines of course:

<html>
<?php
   echo "Hi there<br>";
   echo "my name is ya mum";
?>
</html>

but obviously you need the end of line delimiter (;).

Now the real reason why PHP is so damn cool is because it can access information in a database, rip it out, and convert it to HTML.

If you look at the *ofpec* database in mysqlcc, you'll see it is made up of a heap of tables. Click on tResource. You'll see all of the fields in tResource on the right. tResource contains all of the information on ed depot resources.

Here is where SQL comes in. SQL allows us to search that database. We can call SQL through PHP. It is probaly worth learning simple SQL before progressing - and u can do that by hitting the SQL button in mysqlcc. Make sure you only do select statements!

try:

SELECT Name,ID FROM tResource WHERE Deleted='1' ORDER BY Name

mysql will list the names and IDs of all of the entries in tResource where Delete equals 1. To do this in PHP we would do:

<html>
<?php
   $request = mysql_query("SELECT Name,ID FROM tResource WHERE Deleted='1' ORDER BY Name");
   while ($aRow = mysql_fetch_assoc($request))
   {
      echo $aRow['Name']."<br>";
   }
?>
</html>

Anything starting with $ is a variable. mysql_query executes the string in the brackets as a SQL query, and the result goes into $request (could be any variable name). Ok, when we did the query in mysqlcc, it returned every row, right? Obviously PHP can't return every every row and value in one hit.

We use mysql_fetch_row or mysql_fetch_assoc to return a single row of the result as an array. mysql_fetch_row returns an array that can be indexed as $aRow[0], $aRow[1] etc. mysql_fetch_assoc returns an array that can be indexed by the column name, ie in this case Name or ID, allowing for $aRow['Name'] or $aRow['ID'].

So, $aRow (could be any variable name) is an array representing one row of the result. The while statement simply loops through all results, a row at a time.

echo $aRow['Name']."<br>"; prints to the standard output (ie the final HTML page) the value of $aRow['Name'] and a <br> (newline).

What I have just described is the basis of all PHP - accessing a database via mysql_query and then outputting the results.

Please, be very careful in mysqlcc. you can delete EVERYTHING very, very easily. I recommend making your own table and then playing with SQL in that. (in *database name* right click on tables and select new table. click on the new table when it appears, and make sure it is highlighted for the entire time you are using it).

The best resources are:

http://www.php.net
http://www.mysql.com

But I am sure there are other PHP/SQL tutorials on the web. Ok, good luck!
« Last Edit: 12 Apr 2003, 02:14:33 by snYpir »
Bohemia Interactive Simulations

Offline toadlife

  • OFPEC Old Skool
  • Former Staff
  • ****
  • Official OFP Editing Center Toad
    • toadlife.net
Re:Questions
« Reply #4 on: 12 Apr 2003, 10:17:14 »
http://www.easyphp.org/   <--- php,apache,mysql all bundled into one install program. Great for getting started.
« Last Edit: 12 Apr 2003, 10:17:47 by toadlife »
"Whenever you want information on the 'net, don't ask a question; just post a wrong answer." -- Cancer Omega.

Offline KTottE

  • Former Staff
  • ****
Re:Questions
« Reply #5 on: 12 Apr 2003, 19:01:16 »
Hmm, the installation.exe is in french, is there one in like, english?
Or at least german...

edit

nvm, it worked out okay.
Now, finally I have a working set-up of Apache and MySQL.
*hugs toady*
« Last Edit: 12 Apr 2003, 20:17:08 by KTottE »
"Life is not a journey to the grave with the intention of arriving safely in a pretty and well preserved body, but rather to skid in broadside, thoroughly used up, totally worn out, and loudly proclaiming 'WOW What a Ride!'"

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:Questions
« Reply #6 on: 12 Apr 2003, 23:14:29 »
I'm sorry to hear you have a working set-up of MySQL KTottE  ::) :D
Not all is lost.

Offline KTottE

  • Former Staff
  • ****
Re:Questions
« Reply #7 on: 12 Apr 2003, 23:50:11 »
A$$
"Life is not a journey to the grave with the intention of arriving safely in a pretty and well preserved body, but rather to skid in broadside, thoroughly used up, totally worn out, and loudly proclaiming 'WOW What a Ride!'"