Jump to content


Photo

(url)?settings


  • Please log in to reply
7 replies to this topic

#1 Eugene

Eugene
  • Members
  • PipPipPip
  • Advanced Member
  • 126 posts

Posted 29 June 2006 - 02:07 AM

how can I do that without having it equal to anything?

like: [a href=\"http://google.com?settings\" target=\"_blank\"]http://google.com?settings[/a]

just being a example. [img src=\"style_emoticons/[#EMO_DIR#]/excl.gif\" style=\"vertical-align:middle\" emoid=\":excl:\" border=\"0\" alt=\"excl.gif\" /]

#2 redarrow

redarrow
  • Members
  • PipPipPip
  • Advanced Member
  • 7,308 posts
  • Locationlondon

Posted 29 June 2006 - 02:22 AM

[!--quoteo(post=389064:date=Jun 29 2006, 02:07 AM:name=G F D)--][div class=\'quotetop\']QUOTE(G F D @ Jun 29 2006, 02:07 AM) View Post[/div][div class=\'quotemain\'][!--quotec--]
how can I do that without having it equal to anything?

like: [a href=\"http://google.com?settings\" target=\"_blank\"]http://google.com?settings[/a]

just being a example. [img src=\"style_emoticons/[#EMO_DIR#]/excl.gif\" style=\"vertical-align:middle\" emoid=\":excl:\" border=\"0\" alt=\"excl.gif\" /]
[/quote]

an example only not tested.
page
$settings="hi i am redarrow";

<a href="page_result.php?&$settings">settings</a>


page_result

if(!$_GET['settings']) {

echo $settings;

}

Wish i new all about php DAM i will have to learn
((EMAIL CODE THAT WORKS))
http://simpleforum.ath.cx/mail2.inc
((PAYPAL INTEGRATION THAT WORKS))
http://simpleforum.a...aypal1_info.inc

#3 Eugene

Eugene
  • Members
  • PipPipPip
  • Advanced Member
  • 126 posts

Posted 29 June 2006 - 02:26 AM

Doesn't work :s?

#4 redarrow

redarrow
  • Members
  • PipPipPip
  • Advanced Member
  • 7,308 posts
  • Locationlondon

Posted 29 June 2006 - 02:38 AM

does work ok lol

<?
//?&settings to use get on the other page.

echo"<a href='test_result.php?&settings'>settings</a>";

?>







<? 

// get know shows the word settings on the end of the url
and the code gets executed if settings exists ok.

if(!$_GET['settings']) {

echo hi;

}

?>




AND this is the correct format good coding pratice ok.

<?

echo"<a href='test_result.php?&settings=$settings'>settings</a>";

?>







<? 

if(!$_GET['settings']=='$settings') {

echo hi;

}

?>


Wish i new all about php DAM i will have to learn
((EMAIL CODE THAT WORKS))
http://simpleforum.ath.cx/mail2.inc
((PAYPAL INTEGRATION THAT WORKS))
http://simpleforum.a...aypal1_info.inc

#5 Eugene

Eugene
  • Members
  • PipPipPip
  • Advanced Member
  • 126 posts

Posted 29 June 2006 - 02:43 AM

It always displays hi :-p...

#6 redarrow

redarrow
  • Members
  • PipPipPip
  • Advanced Member
  • 7,308 posts
  • Locationlondon

Posted 29 June 2006 - 02:48 AM

[!--quoteo(post=389075:date=Jun 29 2006, 02:43 AM:name=G F D)--][div class=\'quotetop\']QUOTE(G F D @ Jun 29 2006, 02:43 AM) View Post[/div][div class=\'quotemain\'][!--quotec--]
It always displays hi :-p...
[/quote]

Thats becouse were the echo hi is,thats where your code goes.

if you need more help i am sure i can do so otherwise good luck.
Wish i new all about php DAM i will have to learn
((EMAIL CODE THAT WORKS))
http://simpleforum.ath.cx/mail2.inc
((PAYPAL INTEGRATION THAT WORKS))
http://simpleforum.a...aypal1_info.inc

#7 Eugene

Eugene
  • Members
  • PipPipPip
  • Advanced Member
  • 126 posts

Posted 29 June 2006 - 03:14 AM

[!--quoteo(post=389076:date=Jun 28 2006, 10:48 PM:name=redarrow)--][div class=\'quotetop\']QUOTE(redarrow @ Jun 28 2006, 10:48 PM) View Post[/div][div class=\'quotemain\'][!--quotec--]
Thats becouse were the echo hi is,thats where your code goes.

if you need more help i am sure i can do so otherwise good luck.
[/quote]
Copied your code exactly.
[!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]
settings hi settings bye
[/quote]
That's what is displayed on the main page

#8 redarrow

redarrow
  • Members
  • PipPipPip
  • Advanced Member
  • 7,308 posts
  • Locationlondon

Posted 29 June 2006 - 03:21 AM

where the code is echoed you put your code to execute.

if the varable settings is in the url from get echo hi else echo by

if you take away the !exist statement your get bye
<? 

// get know shows the word settings on the end of the url
and the code gets executed if settings exists ok.

if(!$_GET['settings']) {

echo hi;

}else{

echo bye;

}
?>


windup lol
Wish i new all about php DAM i will have to learn
((EMAIL CODE THAT WORKS))
http://simpleforum.ath.cx/mail2.inc
((PAYPAL INTEGRATION THAT WORKS))
http://simpleforum.a...aypal1_info.inc




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users