942,956 Members | Top Members by Rank

Ad:
Aug 15th, 2010
0

passing querystrings working partially

Expand Post »
hi

i'm hoping to have a file 1.php, which takes in a userid via form input, which sends it to file 2.php which shows you available options depending on your userid, and a file 3.php which alters database values depending on your action, and applies it to values corresponding to the userid.

i'm using ajax to request the pages, so they seem to "stack" on the page for the end user

say 1.php

JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
  1.  
  2. //ajax call up here with a getdocumentbyid to get our 'key' and put it into our get function as a querystring ?key=key in the call for 2.php
  3.  
  4. .....
  5. <form>
  6. <input type='text' id='key' />
  7. </form>
  8. <div> and 2.php should appear here </div>

2.php
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
  1. <?
  2. $key=$_GET['key'];
  3. echo "<input type='hidden' value='".$key."'id=key>;
  4. ?>
  5.  
  6. //ajax call up here with a getdocumentbyid to get our 'key' and put it into our get function as a querystring ?key=key in the call for 3.php
  7.  
  8.  
  9. <div> and 3.php should appear here </div>
  10.  

3.php

JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
  1. <?
  2. $key=$_GET['key'];
  3. echo "<input type='hidden' value='".$key."'id=key>;
  4.  
  5. <-- various sql commands go here, minus the comment tags -->
  6.  
  7.  
  8. ?>
  9.  
  10.  
  11. so in principle should this work? the last time i pasted all of my scripting here i got zero responses, so i'm trying a different approach this time
  12.  
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
aqhulcus is offline Offline
16 posts
since Jul 2010
Aug 15th, 2010
0
Re: passing querystrings working partially
oops, that last sentence shouldn't have been inside the code tags
Reputation Points: 10
Solved Threads: 0
Newbie Poster
aqhulcus is offline Offline
16 posts
since Jul 2010

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in JavaScript / DHTML / AJAX Forum Timeline: event works in IE but not in firefox
Next Thread in JavaScript / DHTML / AJAX Forum Timeline: keeping flyout visible





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC