![]() |
|
#1
|
|||
|
|||
if statement variable problemI have a script that sets a variable inside of an if statement coming from a post-type forum. I'll try to condense the script to show what I mean. *NOTE: I ignored the full form context for the purpose of making the condensed version.
PHP Code:
Step 1 Returns: Quote:
Step 2 Returns: Quote:
For some reason the $div variable doesn't work anymore, or it gets erased after the first step if statement ends. I can't figure out why it won't show up in step two. Can anyone help me with this? |
|
#2
|
||||
|
||||
Re: if statement variable problemI really don't understand the problem but I suggest something...
If $_POST['div'] is set in either step, the setting should happen outside the ifs PHP Code:
__________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
Recent GIDBlog
Developing GUIs with wxPython (Part 4) by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| a significant problem after installing Xp | mohammad | Computer Software Forum - Windows | 10 | 09-Aug-2005 07:03 |
| [Tutorial] Pointers in C (Part II) | Stack Overflow | C Programming Language | 0 | 27-Apr-2005 17:36 |
| Need a bit of help with switch() | Caibre | C Programming Language | 5 | 12-Apr-2005 17:02 |
| editbox output problem | FireFox8173 | MS Visual C++ / MFC Forum | 1 | 01-Apr-2005 14:15 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The