HTML/PHP

Questions about programming languages and debugging
Post Reply
z3mwaz
suck-o-fied!
suck-o-fied!
Posts: 85
Joined: 23 Jul 2006, 16:00
17
Location: Texas
Contact:

HTML/PHP

Post by z3mwaz »

Ok, I'm currently making my own web-site and i've come to a slow halt with the registration page.

I'm new to HTML and PHP, well take that back i know the basic, and thats why i'm making my own site...to learn.

I've coded the registration page with the help of my brother (with me looking over his shoulder), and it uses JS.

I understand the basics of Form's and the input process, then i come to the "Submit" button.
"onclick=" is blank, but i need it to take the input of the Form fields and save it on the server.
I've readed about using PHP, but all i find is where it send the info to an e-mail address.

I just cant figure it out, i'd ask my brother but he's out of town for a month
“Yes, I am a criminal. My crime is that of curiosity.”

p99
Fame ! Where are the chicks?!
Fame ! Where are the chicks?!
Posts: 291
Joined: 14 Oct 2006, 16:00
17
Location: Some hippy's van
Contact:

Post by p99 »

You most definatly want to use PHP! Javascript is good and all for simple things.... but any login forms are viewable by anyone. So that means they could log in as anyone!

If you want to learn PHP go to your local library and pick up a book. That is always easiest.

pseudo_opcode
cyber messiah
cyber messiah
Posts: 1201
Joined: 30 Apr 2006, 16:00
17
Location: 127.0.0.1

Post by pseudo_opcode »

javascript for forms?? noo #-o

use php you can do almost anything with php its just not about mailing.. javascript is client side so be careful user has full control over it

z3mwaz
suck-o-fied!
suck-o-fied!
Posts: 85
Joined: 23 Jul 2006, 16:00
17
Location: Texas
Contact:

Post by z3mwaz »

Thanks Guys,
I actually got "PHP Designer 2007 Pro" today and been playin with it for hours.
Sweet Azz Program....
If anyone know a link to a free e-book, let me know.
i've been reading up at w3school and learned alot so far
“Yes, I am a criminal. My crime is that of curiosity.”

z3mwaz
suck-o-fied!
suck-o-fied!
Posts: 85
Joined: 23 Jul 2006, 16:00
17
Location: Texas
Contact:

Post by z3mwaz »

I kow this is a n00b question...

i have an account with a web hosting company
i've never dne any business with a hosting company so i'm a little lost

i have a php script for the counter for my site:
in the script i need to point to a certain file in my account

$location_counter = "count.txt";

how can i point to that file:
i've tried to url the URL link to the file but that doesnt work
the file is in same folder as my index
“Yes, I am a criminal. My crime is that of curiosity.”

pseudo_opcode
cyber messiah
cyber messiah
Posts: 1201
Joined: 30 Apr 2006, 16:00
17
Location: 127.0.0.1

Post by pseudo_opcode »

well if the file is in same directory as your script then you just need to put the filename... if its in some other you need to put relative path like suppose its in /abc directory that means your index.html and counter script is in / directory then in your script you will write /abc/blah.txt

User avatar
maboroshi
Dr. Mab
Dr. Mab
Posts: 1624
Joined: 28 Aug 2005, 16:00
18

Hello

Post by maboroshi »

Don't know if this helps but I wrote a simple login script a while back (pretty old code)

www.techshinobi.de/software/login.zip

let me know if you would like some help setting it up ;)

Cheers

Maboroshi

User avatar
Gogeta70
^_^
^_^
Posts: 3275
Joined: 25 Jun 2005, 16:00
18

Post by Gogeta70 »

I would HIGHLY not trust a program that writes php for you... you don't know about insecurities that that program may have when it writes php... to me it just seems like a baaaaaaaad idea....
¯\_(ツ)_/¯ It works on my machine...

z3mwaz
suck-o-fied!
suck-o-fied!
Posts: 85
Joined: 23 Jul 2006, 16:00
17
Location: Texas
Contact:

Post by z3mwaz »

PHP Designer doesnt write the code... Its just an IDE to help with the correct syntax for different program languages...for n00bs like me...lol

Maboroshi, thanks for the code, it gives me an idea of how to do it... if i ever get the site finished, i'm goin to make an area of thanks to suck-o and the people that helped me understand what i'm doing

Thanks again guys
“Yes, I am a criminal. My crime is that of curiosity.”

User avatar
Gogeta70
^_^
^_^
Posts: 3275
Joined: 25 Jun 2005, 16:00
18

Post by Gogeta70 »

Ah, i see. From the title it sounded different.
¯\_(ツ)_/¯ It works on my machine...

Post Reply