Contact Us Forum Rules Search Archive
WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-21-2004, 03:12 PM
WebProWorld New Member
 

Join Date: Jan 2004
Posts: 1
tejas RepRank 0
Default PHP e-mail that goes directly into db

I am new to PHP programming. On my site, i asking users to login, but it is just a simple e-mail form, which comes into my inbox.

this is what i would like to do:
when user logs in, their information gets stored in the database and not come into my inbox.

this might be a stupid question, but i am learning :)

I am using ipowerweb as my hosting service.

By the way, this is my first post and i find this forum very useful, so i thank you all.

Keep it up.

Looking forward to your responses.

Tejas
Reply With Quote
  #2 (permalink)  
Old 01-21-2004, 05:55 PM
WebProWorld 1,000+ Club
 

Join Date: Jul 2003
Location: Toronto, Canada
Posts: 2,193
cyanide RepRank 0
Default

Hi tejas,

Welcome to WebProWorld,

Can you clarify what you mean by logging in ??

If this log in is just sending you an email, then what exactly are they logging into ? I don't quite understand.

Maybe you can provide a link also ?
__________________
|
Web Hosting Guru
| Need Help For Your Forum?
Reply With Quote
  #3 (permalink)  
Old 01-21-2004, 06:56 PM
httpman's Avatar
WebProWorld Pro
 

Join Date: Aug 2003
Location: France
Posts: 196
httpman RepRank 0
Default

Not so easy to achieve, unless someone can find a free PHP script that does it ?

Here is what you have to do :

1- don't send the form to an e-mail, but send it to a PHP page

2- use that PHP page to read the form's fields. Here is the PHP code for that :

<?
foreach($HTTP_POST_VARS as $name=>$value) $$name=$value;
foreach($HTTP_GET_VARS as $name=>$value) $$name=$value;
?>

This will store your form's fields values into the $fieldsname PHP variables. Regarding the *method=* of your form, you will get the fields via the *http_post_vars* or *http_get_vars* line.

3- Now that you have the values within PHP variables, just store them into your PHP database...

JP
__________________
www.net-createurs.com [ french only website sorry ! ]
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Tags: , , ,



Thread Tools
Display Modes

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

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


Search Engine Optimization by vBSEO 3.2.0