473,320 Members | 1,732 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Not sure how to finish this zap statement/conditional...

I am trying to make this statement say to delete the deleted folder if you click that zap...or the inbox if it is that zap or the sent box if it is that zap. I started a new one for each and it didn't work so either I missed something in the others or I need to make this one refer to them all in some way. Do I need an or somewher ebetween them or in this code?? How do you do that if so?

Expand|Select|Wrap|Line Numbers
  1.  else if ($HTTP_GET_VARS["zap"])
  2.          zap_deleted_items($HTTP_GET_VARS);
  3.  
[Please use CODE tags when posting source code. Thanks! --pbmods]
Jun 2 '07 #1
3 1175
pbmods
5,821 Expert 4TB
Changed thread title to better match contents.

I started a new one for each and it didn't work so either I missed something in the others or I need to make this one refer to them all in some way. Do I need an or somewher ebetween them or in this code??
What is your code doing?
What is it supposed to do?
Jun 3 '07 #2
Thank you. I'm so PHP stupid I wasn't even sure how to name it.

The code is to allow me to be able to permanenly delete all the messages in teh dleted folder. I want to make it also delete all the messages in the Inbox and Sent folder instead of having to move them to the delted folder to do so. If I change the delted_items to inbox it workd for that but I need to know how I make it work for all three folders.
Jun 4 '07 #3
Here is the other code that goes with it.

Code PHP:

[PHP]if (key($folders) == 102) // if deleted items
$folder_list1 = substr($folder_list1, 0, strlen($folder_list1) - 5) .
sprintf(' &nbsp; <A HREF="pm.php?zap=1&ref=%s">.:%s:.</A><BR>' . "\n",
$vars["folder_id"], lg("pm_zap"));[/PHP]

I made one of these for each folder. Then this is the actual function code.

[PHP]function zap_deleted_items($vars)
// Permanently deletes the contents of the deleted items folder
{
pm_zap_deleted_items(USER_ID);
$folder_id = $vars["ref"];
redirect("/pm.php?folder_id=$folder_id");[/PHP]
Jun 4 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Michelle | last post by:
I have tried every variation of the "onchange" statement below without any actual reloading of the page. I am hoping that the PHP PRINT statement is constructed wrong, otherwise it is javaScript...
7
by: Guy Hocking | last post by:
Hi there, I have a problem in my ASP/SQL Server application i am developing, i hope you guys can help. I have a ASP form with list boxes populated by SQL tables. When a user selects a value...
2
by: web developer | last post by:
hi I need to write a stored procedure that takes input parameters,and according to these parameters the retrieved fields in a select statement are chosen. what i need to know is how to make the...
15
by: grunar | last post by:
After some thought on what I need in a Python ORM (multiple primary keys, complex joins, case statements etc.), and after having built these libraries for other un-named languages, I decided to...
7
by: Shaldaman | last post by:
I have an Access form called "Login". "Command10" is a button on the form and "Text5" is a text field on it. When a user enters a value in the Text5 text field and clicks the button Command10, I...
41
by: Mark R. Dawson | last post by:
I have never used a goto statement in my code, one of the first things I was told in my software classes a number of years ago was "goto statements are evil and lead to spagetti code - do not use...
5
by: googleboy | last post by:
I am trying to create a query that will perform a set of queries in a sequence. If the results of the first query are null, then I want the query to continue to the next query. In all, I believe the...
43
by: dev_cool | last post by:
Hello friends, I'm a beginner in C programming. One of my friends asked me to write a program in C.The purpose of the program is print 1 to n without any conditional statement, loop or jump. ...
7
by: tiptap | last post by:
Hey Guys, I have a huge statement loads of if statements in... and its getting bigger. On closer inspection there is only 3 difference in the select statement. so I thought I could cut the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.