Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 09-26-2011, 08:36 AM   #1
adultzone
So Fucking Banned
 
Industry Role:
Join Date: May 2010
Location: Southeast Asia (Philippines)
Posts: 1,499
Online Form PHP Script Help!

I tried everything but NO luck at all. Can anyone give me the right direction where to go to find that script. I have been searching it all over the internet study some php script but I am getting lazy and getting head aches on reading those words! Now I am trying to ask for help.

An online form which basically a sign up form that will post to my database in my server and I can export those details. Or anyone can give me a ready made online form then I will just insert my database name, username and password. Any help will be appreciated.


J
adultzone is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-26-2011, 11:00 AM   #2
webboy21
Confirmed User
 
Industry Role:
Join Date: Nov 2004
Location: The Netherlands
Posts: 573
most database servers won't be accessible from a location that is NOT your own server I think....why not install one on your own server?

if that is what you want I'd be happy to help
__________________
Available for: CSS | XHTML | PHP | MySQL | Webdesign

webboy21 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-26-2011, 12:32 PM   #3
just a punk
So fuckin' bored
 
just a punk's Avatar
 
Industry Role:
Join Date: Jun 2003
Posts: 32,383
The certainly would but not for free
__________________
Obey the Cowgod
just a punk is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-26-2011, 12:51 PM   #4
webboy21
Confirmed User
 
Industry Role:
Join Date: Nov 2004
Location: The Netherlands
Posts: 573
why did you think I was suggesting that I could help him? ;)
__________________
Available for: CSS | XHTML | PHP | MySQL | Webdesign

webboy21 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-26-2011, 04:13 PM   #5
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,359
not really hard just modify the submit data to store to a db
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-26-2011, 09:21 PM   #6
potter
Confirmed User
 
Industry Role:
Join Date: Dec 2004
Location: Denver
Posts: 6,559
You guys really saying you'd ask for money for 7 lines of (very common) code? Sheesh!

form.php
Code:
<form name="input" action="script.php" method="post">
Username: <input type="text" name="user" />
Email: <input type="text" name="email" />
<input type="submit" value="Submit" />
</form>
script.php
Code:
<?php

$dbconnect = mysql_connect('localhost', 'user', 'password') or die("Unable to connect to MySQL");
$database = mysql_select_db('database_name', $dbconnect) or die("Could not select database");

$user = mysql_escape_string($_POST['user']);
$email = mysql_escape_string($_POST['email']);

mysql_query("INSERT INTO table_name VALUES ($user, $email)");

header("form.php");

exit;

?>
__________________

potter is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-26-2011, 09:33 PM   #7
d-null
. . .
 
d-null's Avatar
 
Industry Role:
Join Date: Apr 2007
Location: NY
Posts: 13,724
what are the most common injection hack vulnerabilities that a simple script like this might inadvertantly run into in the wrong hands? what should be done as basic protection?
d-null is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-26-2011, 10:22 PM   #8
EukerVoorn
So Fucking Banned
 
Industry Role:
Join Date: Aug 2011
Location: Les Alpes, France
Posts: 1,423
Guys, is there a secure way to send info from a form like this by e-mail? Can you do pgp mail from a server for example?
EukerVoorn is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-27-2011, 12:13 AM   #9
Jakez
Confirmed User
 
Jakez's Avatar
 
Industry Role:
Join Date: Jan 2004
Location: oddfuturewolfgangkillthemall!!!!!!!
Posts: 5,656
Quote:
Originally Posted by d-null View Post
what are the most common injection hack vulnerabilities that a simple script like this might inadvertantly run into in the wrong hands? what should be done as basic protection?
The 'mysql_escape_string' part should take of that. It will escape the common characters people use to sql inject.

Now when people want to correctly use ' or " in the form you're going to run into another problem.

Quote:
You\'re text is going to look something like \\"this\\"
__________________
[email protected] - jakezdumb - 573689400

Killuminati

Last edited by Jakez; 09-27-2011 at 12:15 AM..
Jakez is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.