Recent Topics

1 May 28, 2007 23:33    

My b2evolution Version: Not Entered

Just curious is all. I hacked in a form that will send info to an email address and would like to store the info in a table in the database. Seems to me it shouldn't be that hard, but I'm bogged down in a googlemap and figured I should ask this here before too long just in case someone knows an easy answer.

Thanks!

2 May 29, 2007 11:05

Yep, just create yerself a cool lil table and then slap the values into it when you send your email

$sql = 'insert into your_table ( foo, bar ) values ( \''.$DB->escape( $foo ).'\', \''.$DB->escape( $bar ).'\'  )';
$DB->query( $sql );

¥

3 May 29, 2007 15:05

Cool! We're gonna use a form for early registration stuff, and it's kinda neat to be able to ensure we have an archive of the data without having to hope someone saves the emails.

4 May 29, 2007 17:14

You can save emails? 8| Damn, all these years I've been writing them down on paper so I don't lose them ( copying the images was the worst :( ) :roll:

¥


Form is loading...