Jump to content


Photo

registration


  • Please log in to reply
7 replies to this topic

#1 gidiag

gidiag
  • New Members
  • Pip
  • Newbie
  • 6 posts

Posted 28 February 2006 - 12:07 AM

hello everyone. i am really new at this, i have got a registeration page(register.html) and i also have a index page..now what am i trying to do is make the Registration button on the index page accessable i.e when you click on the registrat ion button it takes you to the registration form.

pls how do i get started?

cheers

#2 php_b34st

php_b34st
  • Members
  • PipPipPip
  • Advanced Member
  • 168 posts

Posted 28 February 2006 - 12:17 AM

what code have you got so far?

to simply post the data to the index page (i am assuming it is index.php) you could use
<form method="post" action="index.php">
<!-- Registration form here -->
<input type='submit' value='Register'>
</form>

sorry i mis-read the question to put a link to you registration form on your index page the code is:
<a href="register.html">Register</a>

but this is html not php so i think it should be in the html forum

#3 ToonMariner

ToonMariner
  • Members
  • PipPipPip
  • Advanced Member
  • 3,342 posts
  • LocationNewcastle upon Tyne, UK

Posted 28 February 2006 - 12:23 AM

just have it as a link

<a href="registration.html">Register</a>

I suspect you will be back on here fairly soon...
follow me on twitter @PHPsycho

#4 gidiag

gidiag
  • New Members
  • Pip
  • Newbie
  • 6 posts

Posted 28 February 2006 - 12:34 AM

hello, thks for your reply but do i put that code in a new php file or i paste it in the register.html file?

regards

#5 php_b34st

php_b34st
  • Members
  • PipPipPip
  • Advanced Member
  • 168 posts

Posted 28 February 2006 - 12:52 AM

paste it in whichever file you want to display a link to register.html, you originally said your index page so put it in there.

#6 gidiag

gidiag
  • New Members
  • Pip
  • Newbie
  • 6 posts

Posted 28 February 2006 - 01:26 AM

hi, i added the line to my code and wen i click on register it outputs "No file exists at the address “/Users/imanjones/Documents/register.html”.
but the file is in my documents folder....

#7 php_b34st

php_b34st
  • Members
  • PipPipPip
  • Advanced Member
  • 168 posts

Posted 28 February 2006 - 01:58 AM

are you sure that both files are in the same directory? if so are you sure that register.html is a valid html file and you have not miss-typed on a filename? or did u save it as .htm rather than .html?

#8 gidiag

gidiag
  • New Members
  • Pip
  • Newbie
  • 6 posts

Posted 28 February 2006 - 02:56 AM

yes it is a valid file, and it is in the same directory...




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users