|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
||||
|
||||
|
Disappearing $variables!
I'm attempting to create an "in-site" mail system using the following code (BTW - I am a three month newbie to programming and PHP). The sender's info is drawn from a cookie ($userCook) and the recipient's info is carried over via url ($sendmess). Both work until the submit button is pressed.
Code follows: PHP Code:
When the form is submitted, all info except the "$sendmessID" gets inserted into the db. Somehow that variable disappears! I know it has the value that I am expecting because I use it to echo the username onto the mail form. ARRRG! What Gives!?!? - TIA!
__________________
$mybrain = "mush"; ------------------------------------------- http://www.loftsboston.com http://www.gregdawsondesign.com Last edited by Mojoman : May 24th, 2003 at 01:38 PM. |
|
#2
|
|||
|
|||
|
Your script looks like bug free (except maybe the lurking one
).Anyway, plz try include "ez_sql.php"; instead of current: include_once "ez_sql.php"; Any luck? |
|
#3
|
||||
|
||||
|
use require_once("ez_sql.php");
Also, one suggestion try echoing the value of $sendmessID before you put it into the database.. ie PHP Code:
if the value is blank then you may want to look at your $mailto array and make sure that it has all of the propper values in it.. it may be coming up blank, and if it is then that could be causing that problem.. |
|
#4
|
||||
|
||||
|
Thanks for the suggestions - but none of them seem to work! I even tried swapping the 'memberID' with the 'sendmessID' - and still the sendmessID dissappears (while the memberID still works)! So I know there is nothing wrong with my query...
...ARRRG! I hate work-arounds, but I think I am going to try and create the db record to include the memberID and the sendmessID first when the form page is called and then UPDATE the record with the form info. I'd still welcome any suggestions to my quandry! |
|
#5
|
||||
|
||||
|
were those values blank?
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > Disappearing $variables! |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|