Hi,
FOr some reason i cant think of how to get this to work. I know i have done it before, but ya, ^_^ There is info in the URl (order_id=3000) followed by the rest, is there away to grab a specific part and place that in a form field. Does that make sense? I dont usually ask so many questions, ^_^
Thanks
Josh
Get/POst method to grab info
Re: Get/POst method to grab info
I'm fairly sure we've answered this before.
-K
Code: Select all
<?php echo $_REQUEST['submission_id']; import_request_variables('p', 'p_');
echo $p_submission_id;?>
Re: Get/POst method to grab info
and you probably want to check that the parameter doesnt contain any malicious code also...
tip, try
tip, try
Code: Select all
<__script__>alert('hi')</__script>
Re: Get/POst method to grab info
I found out about that, thanks
And thanks for the double check with malicious code, I almost forgot about that part.
Josh
And thanks for the double check with malicious code, I almost forgot about that part.
Josh
Re: Get/POst method to grab info (new update)
Hi, Im having an issue with this now that I have switched the php file to a different server. When it was on mine, it worked just fine, but on the new server, nothing works, it wont display at all.
and post as well
I have also done this:
"); ?>
still nothing. I have modified the php.ini file with this:
track_vars = on
register_globals = on
so, any input would be awesome. (o by the way, its on 1and1)
thanks
Josh
and post as well
I have also done this:
"); ?>
still nothing. I have modified the php.ini file with this:
track_vars = on
register_globals = on
so, any input would be awesome. (o by the way, its on 1and1)
thanks
Josh
Last edited by izzysanime on Sat Jun 09, 2007 6:17 pm, edited 1 time in total.
Re: Get/POst method to grab info
OK, i figured it out . why... sigh
why does this work and not the other? its soo annoying.
thanks
Josh
why does this work and not the other? its soo annoying.
thanks
Josh
Re: Get/POst method to grab info
Is submission_id the REAL variable?izzysanime wrote:
why does this work and not the other? its soo annoying.
Check with:
Very bad idea ...izzysanime wrote: I have modified the php.ini file with this:
track_vars = on
register_globals = on

Alby
Re: Get/POst method to grab info
submission_id is the real variable, yes
As for the php.ini file, which ones are a bad idea? the register globals one is on by default anyways
As for the php.ini file, which ones are a bad idea? the register globals one is on by default anyways
Last edited by izzysanime on Sat Jun 09, 2007 9:48 pm, edited 1 time in total.
Re: Get/POst method to grab info
register_globals is off by default from 4.2.0izzysanime wrote: the register globals one is on by default anyways
Alby