Jump to content

Recommended Posts

I have php 5 set on the two domains I am using.  One domain has the script and is passing the keyword which is supposed to dynamically insert into the output page.

Let's say the keyword is rice.  The php should execute so the word rice should appear on the output page.  Problem is the code doesnt seem to execute and nothing happens.

 

It is simple code.  The scripts tells me to simply insert

<?=$_REQUEST['kwd']?> 

whereever you want the keyword to appear (in this case rice is the keyword)

 

I have also tried the

<?php echo REQUEST['kwd']; ?>

and that doesn't seem to work either.

 

To test, first go to  http://downloadablemusicfree.net/AP/go.php?uid=1&cid=7&id=rice

 

The output page will look like this: 

 

http://ovariancancerprognosis.org/test.html?apid=A100008O

 

and you will see rice doesn't appear in the title.  Thank you for your help.

 

 

Link to comment
https://forums.phpfreaks.com/topic/202522-why-wont-this-php-execute/
Share on other sites

Not sure if this was just your typo, but this would be the better way to echo it, as <?= requires short_open_Tags to be on in the php.ini

 

<?php echo $_REQUEST['kwd']; ?>

 

But given that this is displayed in the title:

  <title>Your Site -  <?php echo REQUEST['kwd']; ?></title>

 

PHP is not being parsed by your server / your server is not setup to handle PHP requests.

 

 

happyboating,

 

Try saving your file "test.html" as "test.php"  then run:

 

http://ovariancancerprognosis.org/test.php?apid=A100011O

 

That may be all that's needed.

 

Scot L. Diddle, Richmond VA

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.