![]() |
![]() |
![]() |
||||
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. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
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. ![]() J |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
So fuckin' bored
Industry Role:
Join Date: Jun 2003
Posts: 32,383
|
The certainly would but not for free
![]()
__________________
Obey the Cowgod |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
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? ;)
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
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> 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; ?>
__________________
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
. . .
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?
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
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?
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 | ||
Confirmed User
Industry Role:
Join Date: Jan 2004
Location: oddfuturewolfgangkillthemall!!!!!!!
Posts: 5,656
|
Quote:
Now when people want to correctly use ' or " in the form you're going to run into another problem. Quote:
|
||
![]() |
![]() ![]() ![]() ![]() ![]() |