Search found 4 matches

by tobyw_1969
Sat May 05, 2007 11:47 am
Forum: PHP - Code
Topic: Converting XML to nested arrays.
Replies: 3
Views: 432

Hi Volka, yes you are right I could just use that. To be honest, I only found out about simpleXML after posting, and it seems to do what I was trying to create myself (I was using arrays because I wasn't sure if you can create generic objects in PHP and assign dyanmic properties to them). BUT I hate...
by tobyw_1969
Sat May 05, 2007 10:07 am
Forum: PHP - Code
Topic: Converting XML to nested arrays.
Replies: 3
Views: 432

Converting XML to nested arrays.

feyd | Please use , and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color] Could any...
by tobyw_1969
Tue Sep 13, 2005 5:10 pm
Forum: PHP - Code
Topic: Back button re-executing script?
Replies: 2
Views: 210

Ok - I found a way to avoid this, by adding a random number to the URL, and pushing the random number into an array. Then I can check to see if that number has already been used, and die accordingly. Seems very complicated solution though - isn't there a better way?
by tobyw_1969
Tue Sep 13, 2005 4:25 pm
Forum: PHP - Code
Topic: Back button re-executing script?
Replies: 2
Views: 210

Back button re-executing script?

I am no PHP expert, and I'm trying to implement a basic shopping cart. It works like this productinfo.php ---- product info page with 'add to cart button'. This button then calls a hyperlink to the next page like so <a href='additem.php?id=<?php $id?>'> additem.php --- this page then adds to a baske...