Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

php , html ...

 
rrn rose
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi

am using the below shown code for getting index.php of www.test.com.index.php





it is working fine..
but my problem is that.. if the url is www.test.com/index.php?catid=60
the rest part after index.php ie '?catid=60' is not retrieved..

how can i do that???
please help..
i will be very grateful..
thank you
Edit/Delete Message
 
Ryan Beckett
Ranch Hand
Posts: 192
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try
 
rrn rose
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ryan Beckett wrote:Try


sorry Ryan , i didnt understand , where should i use it? can you please explain??

and one more thing

if i am in www.test.com/abc.php
$_SESSION['page'] has the value abc.php

if the url is www.test.com/abc.php?catid=45

i am not able to retrieve the rest part after abc.php, whatever may be the rest part after abc.php, i want to retrieve tat..

how is it possible???

 
Ryan Beckett
Ranch Hand
Posts: 192
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if the HTML form method is GET the form data is attached to the URL. Use $_GET in your php page to retrieve the form data.



should produce 45 in your HTML
 
Maneesh Godbole
Saloon Keeper
Posts: 11196
15
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"rrn rose",
As indicated here (http://www.coderanch.com/t/440947/HTML-JavaScript/Displaying-alert-message-after-submit#1961355) please check your private messages for an important administrative matter.
 
rrn rose
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
tried what you said , but did not work.
Anyway i really appreciate your willingness to help..

Thanks a lot...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic