Go Back  HTML Forums - Free Webmaster Forums and Help Forums > WEBSITE DEVELOPMENT > Server Side Programming > PHP Programming
User Name:
Password:
 

Reply
Thread Tools   Display Modes
  View First Unread
 
Old 03-27-2008, 06:08 AM
  #1
allan smith
Myrmidon (Level 12)
 
Join Date: Oct 2004
Posts: 180
iTrader: (0)
allan smith is on a distinguished road
Can php code create $_POST array

I use formail and a webpage form that submits using post to invoke the formmail script - all works well.

I am in the process of creating a members only section to our website. I want to be able to email new passwords, when users request them having forgotten their original, automatically.

I have this working by using the existing form and creating and automatically filling in the form - but the user still has to click submit. I can get round this using JScript.

However - it isn't secure - I would prefer not to have the new password sent to the requesting user's browser at all - it might not be the correct user.

Is there a way of creating the $_POST array by code and then 'invoking' formmail, thus keeping it completely server side?

help appreciated
allan smith is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 03-27-2008, 04:43 PM
  #2
Vege
♥♥♥
 
Vege's Avatar
 
Join Date: Sep 2004
Location: Finland
Posts: 2,500
iTrader: (0)
Vege will become famous soon enough
your using cgi formmail with php?
php has it's own mail functions that can do the trick you want.
__________________
I read the bible
Specially pg.681
Vege is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 03-28-2008, 03:53 AM
  #3
allan smith
Myrmidon (Level 12)
 
Join Date: Oct 2004
Posts: 180
iTrader: (0)
allan smith is on a distinguished road
formmail is a php code based system. I cannot use mail() as my ISP has disabled it.

Did a bit more digging with ISP and found out how to enable mail()

All sorted - thanks

Last edited by allan smith : 03-28-2008 at 05:11 AM.
allan smith is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Reply
« Previous Thread | Next Thread »


 
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
  
 
 
 



 
  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 Off
HTML code is Off
Thread Tools
Display Modes

Forum Jump

 

All times are GMT -5. The time now is 04:09 PM.

   

Mascot team created by Drawshop.com

Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

Server Monitoring by ENIACmonitor 0.01
HTMLforums.com © Big Resources, Inc. Web Design by BoxedArt.com
vRewrite 1.5 beta SEOed URLs completed by Tech Help Forum and Chalo Na.