Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Closed Thread
posting info in html form
Old 04-22-2009, 01:19 PM posting info in html form
webmaster flex's Avatar
Extreme Talker

Posts: 160
Name: Webmaster flex
Trades: 0
hi, i have 2 forms (www.fb-chips.com/contact www.fb-chips.com/order) and i want to make it so when someone fill in the form and presses submit the information is stored on another page on the site(password protected), sent to my email, and then the person who sent the form is redirected to another page on my site.

is there a premade code or can someone take me through how i would achieve this. thanks
webmaster flex is offline
View Public Profile
 
 
Register now for full access!
Old 04-22-2009, 03:33 PM Re: posting info in html form
rogem002's Avatar
PHP Chap

Posts: 843
Name: Mike
Location: United Kingdom
Trades: 0
http://phpmailer.codeworxtech.com/index.php?pg=examples < PHPMailer, seems like what you are looking for.

Though, i suggest you look into the PHP Mail (http://uk2.php.net/manual/en/book.mail.php) function and the header ( http://uk2.php.net/manual/en/function.header.php ) function.
__________________
My Blog/Site:
Please login or register to view this content. Registration is FREE
rogem002 is offline
View Public Profile Visit rogem002's homepage!
 
Old 04-23-2009, 03:53 PM Re: posting info in html form
Skilled Talker

Posts: 68
Name: Avi Zolty
Location: Atlanta
Trades: 0
1) Specify the action of the forms POST (not GET) to a PHP page... have the PHP page open an SQL database (you can use mySQL) and store the information in there.
Now you have to options..
1) at the bottom of the PHP page (under the code) you can make an if...else statement that if the information has been sent successfully, the page will load saying something like "Successfully submitted".
2) You can have it so that the PHP redirects the window to another location
[PHP
header('window.location="http://www.pagetogoto.com');
[/PHP]

As for SQL, you're going to have to make sure that you're hosting plan/company allows for it.... Then you're going to want to CREATE the database (either by running a query that creates the database.. or you can do so easier with something like CPANEL) Inside the actual page, there are going to be three parts to your mySQL
1) Create a connection with your database gain permission to access it and open it.
2) Retrieve the information from the html form (you can do that with the
PHP Code:
$_REQUEST[''
which will return the information you want) and Input it into the database
3) Something to happen if the script is successful (this can be a redirect or just an echo)

For more information regarding mySQL and SQL check out this site.
http://www.w3schools.com/sql/default.asp
http://www.w3schools.com/php/php_mysql_intro.asp
__________________
"If you say something interesting, people will remember your name" ~ Anonymous


Please login or register to view this content. Registration is FREE
.asp <- Irony
Zoltar1992 is offline
View Public Profile
 
Old 04-23-2009, 04:36 PM Re: posting info in html form
webmaster flex's Avatar
Extreme Talker

Posts: 160
Name: Webmaster flex
Trades: 0
tell you what guys im very bad with php. if someone could replicate the two forms ive made but change them to php, so when the info is submitted it sends the input to my email and redirects them to another page i will pay you $20 via paypal, i know its not much but this is a low budget prodject. would really appriciate this.

thanks,
webmaster flex is offline
View Public Profile
 
Old 04-23-2009, 10:13 PM Re: posting info in html form
Skilled Talker

Posts: 68
Name: Avi Zolty
Location: Atlanta
Trades: 0
I'll do it for you, message me.
__________________
"If you say something interesting, people will remember your name" ~ Anonymous


Please login or register to view this content. Registration is FREE
.asp <- Irony
Zoltar1992 is offline
View Public Profile
 
Closed Thread     « Reply to posting info in html form
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.66773 seconds with 12 queries