Forums

This topic is locked

Delete Php

Posted 20 Jan 2005 17:06:03
1
has voted
20 Jan 2005 17:06:03 Chris Trace posted:
Hello all,

Here is the issue:

page1 - search for record to delete
page 2 - display record with link to page3encapsulating php recordset
page 3 - display complete record and confirm delete
page 4 - display delete confirmation completion

Currently the site is going from page 2 via page 3 automatically then to
page 4 - ie the confirmation page is being circumvented.

Can anyone please tell me why this is occuring?
Thanks

Replies

Replied 20 Jan 2005 21:13:10
20 Jan 2005 21:13:10 Chris Charlton replied:
Are you using a Dreamweaver MX/MX2004 <i>DELETE Record</i> Server Behavior? Or a custom delete script (hand coded)?
Replied 21 Jan 2005 07:42:35
21 Jan 2005 07:42:35 Chris Trace replied:
am using the dw delete record server behaviour - form sub - then to display listing - then link with php url param to confirm page

rather than go to the confirm page (step 3) from p2 link - the site goes straight to p4 - deletes the record but doesnt allow user to confirm

any thoughts?
Replied 21 Jan 2005 08:51:30
21 Jan 2005 08:51:30 Chris Charlton replied:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>am using the dw delete record server behaviour - form sub - then to display listing - then link with php url param to confirm page

rather than go to the confirm page (step 3) from p2 link - the site goes straight to p4 - deletes the record but doesnt allow user to confirm<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Do you have a php <i>header</i> redirect before your HTML content?
Replied 21 Jan 2005 14:55:58
21 Jan 2005 14:55:58 Chris Trace replied:
no not that i am aware of - what should i be looking for in that instance

i have the same protocols for another function which works
Replied 21 Jan 2005 20:39:52
21 Jan 2005 20:39:52 Chris Charlton replied:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>Do you have a php <i>header</i> redirect before your HTML content?<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
<pre id=code><font face=courier size=2 id=code>&lt;?php header("Location: www.redirected-url-page.net/we_are_cool/"); ?&gt;</font id=code></pre id=code>
Something along those lines...anyway, is there a PHP redirect before your HTML code?
Replied 25 Jan 2005 04:14:37
25 Jan 2005 04:14:37 Chris Trace replied:
Not as described in your post.

Will email code to you via dmx - any thoughts would be good

Thanks
Replied 25 Jan 2005 10:17:34
25 Jan 2005 10:17:34 Chris Trace replied:
Chris,

Got it. The hidden field variable was not passing the url data for some reason - deleted it and reincluded on page - funnily enough the same HF name tag as before and it worked - one of those things?

Thank you for all your help.

Chris
Replied 27 Jan 2005 20:25:08
27 Jan 2005 20:25:08 Chris Charlton replied:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>Got it. The hidden field variable was not passing the url data for some reason - deleted it and reincluded on page - funnily enough the same HF name tag as before and it worked - one of those things?<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Aw cool. It minght have had a DW default <i>name</i> or <i>id</i> attribute. <img src=../images/dmxzone/forum/icon_smile_tongue.gif border=0 align=middle>

<img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>

Reply to this topic