Jump to content

URL Registration in PHP


XtremeKilling

Recommended Posts

sry i need it in php so it can add a user to my database.

 

I'm making a Client out of Borland Delphi and it has 2 text fields for them to insert user and pass

to register,and the only way they can be added is through a URL.

 

for example

Buttonclick(register);

 

register;

getpage:=www.xtremekilling.net/username=%user%&password=%pass%

writeln('Thank you for Registering');

 

of course my real code isnt going to be that simple but its an ideal example.

btw wheres the code library?

 

Thanks

I don't understand why you would be making a client out of Delphi and using PHP at the same time. PHP is a web server language so anything you write in it will go to a webserver to be processed, this could in theory pass information to a Delphi program but I don't understand why you would do that as PHP can update your database directly.

 

Normally it would be an online registration form written in X/HTML which passes data back to the PHP script which could then add/update/delete records in a database.

 

Using the GET method isn't the best idea either, its usually better to write a form which utilises the POST method, reading in the registration details from the HTML elements of the form.

 

The code library is on the main page of the site, there is a link at the top of the forums or you can just go here, http://www.phpfreaks.com

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.