Re: Try to pass variable into a php script

This is a discussion on Re: Try to pass variable into a php script within the PHP Language forums, part of the PHP Programming Forums category; I am not sure how you used javascript to submit the form. I usually do like document.form.action = "/...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-12-2003
s a n j a y
 
Posts: n/a
Default Re: Try to pass variable into a php script

I am not sure how you used javascript to submit the form.

I usually do like

document.form.action = "/cgi-bin/register.pl"
document.form.submit();
return true;

besides if your globals are turned off you should be able to get it like

<?

$see = $_GET['c'];
$keyword = $_GET['keyword'];
$aid = $_GET['aid'];


print("<BR> c : ") . $see;
print("<BR> keyword : ") . $keyword;
print("<BR> aid : ") . $aid;

?>



sanjay

"Mike" <b1nt@hotmail.com> wrote in message
news:30ffe66c.0308120701.45b86e52@posting.google.c om...
> Hi
>
> I'm passing these variable into ad.php script it takes $c and $keyword
> BUT the $aid is NOT set to a value, Is there something I'am doing
> wrong.
>
> <script language='Javascript'
>

src=http://www.ay-up.com/ad/ad.php?c=show&keyword=defaultad&aid=1></script>


Reply With Quote
Reply


Thread Tools
Display Modes

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

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



All times are GMT +1. The time now is 02:53 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0