simple registeration form through web?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • spid3r
    New Member
    • Sep 2005
    • 2

    #1

    simple registeration form through web?

    hello

    i sniffed a program that make aregisteration account through the program itself
    i need to make asimple form in php/html that make registeration through web instead of the application
    here's the result of sniffing

    PE,™؛ZPE,™؛PO ST /register.php HTTP/1.1
    Accept: */*
    Content-Type: application/x-www-form-urlencoded
    Host: www.a.com
    Content-Length: 318
    Cache-Control: no-cache

    name=name&email =a@a.com&countr y=United States of America &zip=550037 HTTP/1.1 200 OK ... etc

    i tried http://a.com/register.php?name ..... etc
    but it send the data as "GET" not "Post" and i get error > invalid data

    i know it's simple code but i can't figure it well , hope 2 find help here
  • Niheel
    Recognized Expert Moderator Top Contributor
    • Jul 2005
    • 2433

    #2
    Could you explain what you are looking to do a bit further.

    I hope i got this right:

    You have a application and you want to send registration data to it via _GET, but it only accepts it via _POST . . if that is the case . . then the application probably is making sure that only accepting post variables.

    to change it . . make sure that

    Code:
    $var = $_POST[var];
    is this ..


    Code:
     
    if(isset( $_GET[var])){ 
    	$var = $_GET[var];
    }else{
    	$var = $_POST[var];
    }

    When you enable GET variables always add extra layers of error checking. Lot's of script kiddies around.
    Last edited by Niheel; Oct 1 '05, 04:41 PM.
    niheel @ bytes

    Comment

    • spid3r
      New Member
      • Sep 2005
      • 2

      #3
      what i mean 4 example
      i have aprog called "register.e xe" which make registeration account to the site www.a.com with the user and pass which i insert into the application register.exe

      i want to make html/php page that do the same function of the application register.exe so i don't need the file anymore and register new accont via web page
      hope u understand what i mean

      Comment

      Working...