Re: PHP Beginner question



pepito3@xxxxxxxxx wrote:
I think you need to read up on how a browser and web server interact
some more. This is pretty basic stuff but you seem to be missing some
key concepts based upon the type of questions you are asking.


The 'list_product.php' may be *any* valid url string.
That includes:
URLs that are not absolute.
Different urls based upon code.
URLS that include get operators.
URLS that are mod_mapped.


My question is much simpler (and I understand how a http server works),
maybe I didn't explain myself very well:

If I used redirect(X) I would have to store X in $_POST or $_SESSION
arrays so that add_product.php can get that X. That's something I can't
do as an action performed when the user clicks on a link. So how can I
do that?


You can't just store it in the $_POST variable; a new page will wipe out any values here. But storing them in $_SESSION works fine (as long as you don't change domains).

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@xxxxxxxxxxxxx
==================
.



Relevant Pages

  • Re: PHP Beginner question
    ... This is pretty basic stuff but you seem to be missing some ... key concepts based upon the type of questions you are asking. ... If I used redirectI would have to store X in $_POST or $_SESSION ... arrays so that add_product.php can get that X. That's something I can't ...
    (comp.lang.php)
  • Re: About session data missing
    ... information in forms of an arrays. ... missing something to consider: ... There are appropriate permissions for session file storage ...
    (comp.lang.php)
  • Re: About session data missing
    ... Now problem is: order is still getting create but missing some value: ... I have serialized a entire session variable and stored in db ... information in forms of an arrays. ... Have you tried a different session handler? ...
    (comp.lang.php)
  • Ubuntu/Gnome 2.17.5 Weirdness
    ... Terminal to startup when my session starts) when I was done, ... icons were missing. ... I switched desktops, still no icons. ... The FS is ext3, so recovery is near ...
    (comp.os.linux.misc)
  • Re: How many runs are scored?
    ... key component missing is often described as a complete failure ... The nee naw is complete as a nee naw, but it only works that way ... we all like has been written by session men. ... musicians), but the point remains that those who are primarily session ...
    (uk.sport.cricket)