Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

confirming a delete... any ideas?

Status
Not open for further replies.

unborn

Programmer
Joined
Jun 26, 2002
Messages
362
Location
US
ok so i have a form... you press the button and it will reload the page but send values of the file in a drop down and a command to let it know its supposed to delete it... now when it does this i have it goto a confirmation page which still has the files name so i made a link back to the filesaying its verified and wants to delete but the file name is now gone... is there a way i can pass this file name along with out doing it through url (security reasons) or through a form... or if i do it from a form.. how do i make it so the no button goes back to the edit or news page...


thanks

in the begining man created code.
in the end code will create man.
clones are coming only matter of time.
examples?
 
use a session variable to hold the file name and yo can call it as long as the session has not ended

Bastien

cat, the other other white meat
 
where can i learn about sessions and how long to keep them? and once its used can i end it so it cant be called again?

thanks



session... is that cookies?



thanks again

in the begining man created code.
in the end code will create man.
clones are coming only matter of time.
examples?
 
error:
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/error-pr/public_html/distorted/news/editnews.php:3) in /home/error-pr/public_html/distorted/news/editnews.php on line 3

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/error-pr/public_html/distorted/news/editnews.php:3) in /home/error-pr/public_html/distorted/news/editnews.php on line 3








code snipet:
<html>
<head>
(line 3)<? session_start(); ?>
<link rel=&quot;stylesheet&quot; href=&quot;/distorted/distorted.css&quot; type=&quot;text/css&quot;>
</head>
<body background=&quot;/distorted/body.jpg&quot; leftmargin=&quot;2&quot; topmargin=&quot;0&quot; bgproperties=fixed>
<font size=2 face=tahoma color=#5A768E>
<p align=justify>
<?





perhaps some help from the php guruhs :D bleh

in the begining man created code.
in the end code will create man.
clones are coming only matter of time.
examples?
 
[tt]<?php session_start(); ?>[/tt] should start every script that uses sessions. It should be the very first characters in the script, or you will get errors.

//Daniel
 
code snipet:
<? session_start(); ?>
<html>
<head>
<link rel=&quot;stylesheet&quot; href=&quot;/distorted/distorted.css&quot; type=&quot;text/css&quot;>
</head>
<body background=&quot;/distorted/body.jpg&quot; leftmargin=&quot;2&quot; topmargin=&quot;0&quot; bgproperties=fixed>
<font size=2 face=tahoma color=#5A768E>
<p align=justify>
<?



Bastien

cat, the other other white meat
 
eww guess my works inet went down before it posted :/

i figured it out right after i posted it :/ hehehe

thanks for the help,

i see some of you in my other posts. i hope i can help out here soon as much as i have in the visual basic forums when i was there.


thanks.

in the begining man created code.
in the end code will create man.
clones are coming only matter of time.
examples?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top