Members Login.
 

Please register HERE to be part of our Community
Contest of the Day.
 
Current Promotions.
 
Refer your friends to this forum and earn BRL per referred member.

Post a New Thread anywhere on Web Development Board to earn BRL$ 5 for every thread. Post a New Reply there and earn BRL$ 3 for every reply.

Post a New Thread anywhere on Search Engine Optimization Board and earn BRL$ 5 for every thread.
Earn By Posting
 
Participate in forum and Earn $$$.

Get Referrer Credit - BRL$ 20
Get Positive Rep Cr. - BRL$ 3
Get New Thread Cr.- BRL$ 3
Get Posting Cr. - BRL$ 2
Get Post size Credit

Full List of BRL$ Earnings
Sponsors.
 


PHP Discussion related to PHP web development, PHP coding. Tutorials, source code, tips and tricks related to PHP programming.

   

multiple variable problem, last variable vanishing!


This is a discussion on multiple variable problem, last variable vanishing! within the PHP forums, part of the Web Development category; Hi folks, I know this is a big ask but I have been trying to figure this one out for ...

Reply
  #1 (permalink)  
Old 07-19-2007
Administrator

Join Date: Jun 2007
Posts: 3,729
BRL$: 34,530.45
Thanks: 0
Thanked 6 Times in 6 Posts
Rep Power: 405
Rss_Feeds is on a distinguished road
Default multiple variable problem, last variable vanishing!

Hi folks, I know this is a big ask but I have been trying to figure this one out for a few days now and it is starting to drive me mad. I'm sure this is something simple that I have done wrong but I can't for the life of me figure out what is wrong here. I'm just learning PHP so any pointers would be very greatfully appreciated.Some background. I decided I needed to learn PHP, I really enjoy it but keep getting stuck on things like this due to my lack of knowledge. So I set myself a challenge to write a PHP CMS system using PHP, mySQL, XHTML and CSS. All was going fine (all be it rather slowly) until I tried to write the page to edit articles in the CMS.I have the 'ID', 'title', 'venue' and 'article' stored in the database fine. I can pull entries out and display them fine. I now want to edit them using a browser. So I thought I would use the same form I used to add mySQL entries and change ti so that it loads in the article into the form fields depending on the id. (This is chosen through a link saying 'edit).Code:Code:------------------I'm trying to pass multiple variables using a URL in the form of:edit.php?id=46&title=34.4.56&venue=Whitley&arti cle=ydddjadjkgdgsdjsaI'm only actually passing the variable;edit.php?id=46&title=34.4.56&venue=Whitle yThe delete button works fine BTW Image:
To view links or images in this forum your post count must be 1 or greater. You currently have 0 posts.
I need to add the article into the URL as well, but it isn't adding it. I wondered if there is a limit to how many variables can be passed in one URL but I have looked around and found lots of sites with very long and complicated variables. - So this can't be the problem.I tried re-arranging the variables to see if it was just the last one being removed for some reason. It is not. It is the 'article' variable which never works.I then tried adding a 'spare' variable in at the end of the url to see if this would force the 'article' variable to work, but this did not work either.Here is the form:Code:Code:---------edot3 - simpleCMS Edit an article


Title (Date)
"> Article (Gig information)



_uacct = "UA-139461-1";urchinTracker();_uacct = "UA-139461-1";urchinTracker();---------Any help would be amazing. Any eagle-eyes out there can spot what I've done?ThanksMark


To view links or images in this forum your post count must be 1 or greater. You currently have 0 posts.
__________________
High Quality
To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.

Powerful
To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.


To receive latest updates about BRL Forums, Subscribe to Latest Updates Thread.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
multiple, problem, vanishing, variable


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105