Jump to content

parsing from url


alohatofu

Recommended Posts

http://sometime.com/page.php?$objTask->p('eric')&$objTask->p('cuoos')&$objTask->p('clli')

That should work, although it would send them as a get method, so anyone could input their own values. That might not matter though, depending on what it's for

Link to comment
Share on other sites

i think you mean

 

<?php
echo "<a href='http://sometime.com/page.php?eric={$objTask->p['eric']}&cuoos={$objTask->p['cuoos']}&clli={$objTask->p['clli']}' click here </a>"
?>

 

i am assuming its an array so $objTask->p['eric'] and not $objTask->p('eric')

 

page.php

echo $_GET['eric']."<br>";
echo $_GET['cuoos']."<br>";
echo $_GET['clli']."<br>";

Link to comment
Share on other sites

thanks for the reply but that didnt' work for me.

 

Ok please allow me to explain further

 

sample code from page:

        <div id="ftitl">
    	    <div class="flabel"><?php echo $GLOBALS['langForm']['eric']; ?></div>
		<div id="vtitl"><?php
			$objTask->p('eric');
		?></div>
        </div>

 

here is my link on page view.php

<a href="javascript:popUp('sendpageadvisory.php')"><font color="orange"><?php echo $GLOBALS['langTaskDetails']['sendadvisorypage']; ?></font></a>

 

sendadvisory.php is a popup window.  I want to pull $objTask->p('eric') and $objTask->p('cuoos')  and $objTask->p('clli') to the sendpageadvisory.php page.

 

I really appreciate the help

Link to comment
Share on other sites


		<?php
			if ( ($objTask->cuoos) >= 8 && ($objTask->priority) ==2) {
			?>
			<li id="tpage"><a href="javascript:popUp('<?php echo "sendpageadvisory.php?eric=".$objTask->p('eric') ?>')"><font color="orange"><?php echo $GLOBALS['langTaskDetails']['sendadvisorypage']; ?></font></a>
			<?php
			} elseif ( ($objTask->cuoos) >= 64 ||($objTask->priority) ==1) {
			?>
			<li id="tpage"><a href="javascript:popUp('sendpageoutage.html')"><font color="red"><?php echo $GLOBALS['langTaskDetails']['sendoutagepage']; ?></font></a>
			<?php
			}
			else {
			}
		?>

Link to comment
Share on other sites

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.