PHP Coding
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Coding

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
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  
Old August 14th, 2002, 05:23 AM
alamsie alamsie is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 13 alamsie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
  #2  
Old August 14th, 2002, 03:29 PM
Gipz Gipz is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Stockholm, Sweden
Posts: 98 Gipz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via ICQ to Gipz
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"

Reply With Quote
  #3  
Old August 14th, 2002, 11:35 PM
alamsie alamsie is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 13 alamsie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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??

Reply With Quote
  #4  
Old August 14th, 2002, 11:46 PM
notepad notepad is offline
Codewalkers Loyal (3000 - 3499 posts)
 
Join Date: Apr 2007
Location: Central, IL USA
Posts: 3,214 notepad User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Send a message via AIM to notepad
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.

Reply With Quote
  #5  
Old August 15th, 2002, 12:47 AM
alamsie alamsie is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 13 alamsie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
  #6  
Old August 15th, 2002, 12:51 AM
notepad notepad is offline
Codewalkers Loyal (3000 - 3499 posts)
 
Join Date: Apr 2007
Location: Central, IL USA
Posts: 3,214 notepad User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Send a message via AIM to notepad
RE: E-mail in php

sorry that's what i meant to say

Reply With Quote
  #7  
Old August 15th, 2002, 11:08 PM
alamsie alamsie is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 13 alamsie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: E-mail in php

its ok Notepad..thanks all the same

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Coding > E-mail in php


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway