Win a copy of Succeeding with AI this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Junilu Lacar
Sheriffs:
  • Tim Cooke
  • Jeanne Boyarsky
  • Knute Snortum
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • salvin francis
  • fred rosenberger
  • Frits Walraven

php , html ...

 
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
 
Ranch Hand
Posts: 194
  • 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: 194
  • 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
 
Bartender
Posts: 11445
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"rrn rose",
As indicated here (https://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...
 
Why does your bag say "bombs"? The reason I ask is that my bag says "tiny ads" and it has stuff like this:
ScroogeXHTML 8.7 - RTF to HTML5 and XHTML converter
https://coderanch.com/t/730700/ScroogeXHTML-RTF-HTML-XHTML-converter
    Bookmark Topic Watch Topic
  • New Topic