MULPILE FORM PRECESSING !!!!!!!!!!!! help !!!!!!!!

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
maceved23
Forum Newbie
Posts: 17
Joined: Sun Jul 13, 2003 11:56 pm

MULPILE FORM PRECESSING !!!!!!!!!!!! help !!!!!!!!

Post by maceved23 »

HI :D

I'm having a problem, I need to process a form and pass the values two 2 diferent pages.

This is the form process I use. IT WORKS PERFECT

<form name="HELP" method="post" action="verif.php" enctype="multipart/form-data">

IT'S POSSIBLWE TO DO THIS????

<form name="hoja" method="post" action="verif.php&email.php" enctype="multipart/form-data">


HELP ME OR SUGGEST ME SOMETHING.
Th exact problem is in the form I pass my values to a fiele verif.php where I make the INSERT in my DB. But I need top send a confirmation mail at same time.
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

Can't you just include() the code for the INSERT and the code for the mail sending into one page? That way you don't need to send the information to two separate pages.

Mac
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

Moved this topic to PHP - Normal as it was not a database question.

Mac
User avatar
JAM
DevNet Resident
Posts: 2101
Joined: Fri Aug 08, 2003 6:53 pm
Location: Sweden
Contact:

Post by JAM »

As twigletmac states, you could

Code: Select all

form
 sends to verify.php
  ...do stuff...
   include(mail.php)
    mail_function($the_email_addy)
     send mail using $the_email_addy
maceved23
Forum Newbie
Posts: 17
Joined: Sun Jul 13, 2003 11:56 pm

THANKS A LOT !!!!!!!!

Post by maceved23 »

I include the code in the same page.

It works perfect.

Mario. :D
Post Reply