|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
|
|
#1
|
|||
|
|||
|
E-mail in php
hello,
i have a form where the user enters a request for a course. When submit is clicked on this form an e-mail is sent to the head of the dept giving all the details and accordingly the dept head gives the approval. my problem is that i ahve succedded in sending the e-mail with all the information and i have also given a weblink which opens a php form with the radio buttons of approval and disapproval. What i dont know how to do is...how to pass the hidden values (ID ,firstname) to the new form which the head opens as a weblink. a snippet of my code is: if($submit == "Update") { if($access == "Audio") { $message = "First Name: $firstnamen Last Name: $lastnamen Email: $emailn PHONE: $phonen UCLAID: $UCLAIDn STATUS: $statusn Department: $deptn SCHOOL: $schooln SPONSOR:$sponsorn SPONSOR CREDIT: $creditn Please click on the following link http://ppp.design.uuu.edu/~aa/specialaccess/resultsponser.php"; $extra = "From: $NamernReply-To: $Emailrn"; mail ("alifyag@hotmail.com", "Special Access Enquiry", $message, $extra); echo "<p class=bodymd>Thankyou, $ID, $firstname.</p>"; echo "<p class=bodymd>A response will be sent to $email as soon as possible.</p>"; } pls let me know thanks alifya |
|
#2
|
|||
|
|||
|
RE: E-mail in php
Hi!
I would like to look at the code that generates the php link to the approval form. There you could easely pass the values by adding them to the link like: "http://my.url.com/form.php?id=0&firstname=maria" |
|
#3
|
|||
|
|||
|
RE: E-mail in php
hi,
the code that generated the php link to the approval form is: if($access == "Audio") { $message = "First Name: $firstnamen Last Name: $lastnamen Email: $emailn PHONE: $phonen UCLAID: $UCLAIDn STATUS: $statusn Department: $deptn SCHOOL: $schooln SPONSOR:$sponsorn SPONSOR CREDIT: $creditn Please click on the following link http://ppp.design.uuu.edu/~aa/specialaccess/resultsponser.php"; $extra = "From: $NamernReply-To: $Emailrn"; mail ("alifyag@hotmail.com", "Special Access Enquiry", $message, $extra); echo "<p class=bodymd>Thankyou, $ID, $firstname.</p>"; echo "<p class=bodymd>A response will be sent to $email as soon as possible.</p>"; } where resultsponser.php is the approval form. i tried what u told me passing the ID and first name but that didnt help. i want to do an update query in my approval form using the ID i pass but the question is how do i pass that ID?? |
|
#4
|
|||
|
|||
|
RE: E-mail in php
if you put something like <input type="hidden" name="ID" value="$ID"> in the new form then the variable should retain its value.
|
|
#5
|
|||
|
|||
|
RE: E-mail in php
hi notepad,
thats what i had done...but the new approval form wasnt taking in the ID. however i realised my mistake and got it working. i put INPUT type="hidden" name="ID" value="<?php echo $ID;?>"> in the approval form and now it works. thanks |
|
#6
|
|||
|
|||
|
RE: E-mail in php
sorry that's what i meant to say
|
|
#7
|
|||
|
|||
|
RE: E-mail in php
its ok Notepad..thanks all the same
|
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Coding > E-mail in php |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|