php


Not getting the full value passed through the href in the next page


The link tag which is being used in packages.php.
<a class='none' href='Tour-details/{$row["seo_title"]}'>
And in the next page tour_details.php
$abd=$_GET['tour']
it should display singapore-package but it is displaying only singapore
The $_GET superglobal array will contain parameters passed by the GET method on the request.
Ie. those after the ? in the url
Eg. <a class='none' href='Tour-details/?tour={$row["seo_title"]}'>
If you want to pretty print your urls you will need to parse out the requested path using php
Eg.
$tour = end(explode('/',parse_url( $_SERVER['REQUEST_URI'], PHP_URL_PATH)));
Or you could use .htaccess to re write the rules
Eg.
RewriteEngine On
RewriteRule ^Tour-details/([^/]+)/?$ tour_details.php?tour=$1
May be this is what you wants,
if not please share your whole code
packages.php
<?php
echo "<a class='none' href='tour_details.php?tour=".$row['seo_title']."'>Go</a>";
//$row['seo_title']="singapore-package"
?>
tour_details.php
<?php
$abd=$_REQUEST['tour'];
echo $abd;
?>

Related Links

How to handle one to many relationships in an object orientated way?
How to get form data when HTTP method is PATCH in Phalcon 1.3.x?
ReGex in PHP, isolating between [img]
PHP data retrieval in array
'Undefined index: submit' happens
Using MySQL Workbench Database to connect both C# and WEb system
Serial No Generator using php in mysql in multi user environment
I am trying to display a image using imagejpeg() but the link of the url is displaying as image
Use Authenticated Google Client instance for multiple services
Move an uploaded file in Laravel 5.3
How to get the max number of bits you can encrypt with openssl_public_encrypt?
PHP Invoices change start day of the week -2 days
Iam not Geting login user email to insert into database
how to send value to exists tag in xml file usuing PHP
Global replace attribute in prestashop
How to echo html tag in blade of Laravel

Categories

HOME
keyboard
transactions
message-queue
website
initialization
iverilog
magento-2.0
celery
semantic-web
biztalk-2010
azure-data-lake
tweepy
telegraf
cisco
mailing-list
eddystone
locationmanager
watch-os-3
mpu6050
xbox360
tomcat8
exe
gravity
jaspersoft-studio
bosun
exchange-server-2010
web-config-transform
plyr
xdebug
materialize
locks
commonsware-cwac
rust-cargo
wampsharp
actframework
epplus
private-key
pdfnet
testlink
djcelery
macports
secure-coding
viewcontroller
git-tfs
viewmodel
tinyioc
roracle
non-linear-regression
lightning-workbench
gestures
entropy
webvtt
zend-server
emf-compare
ltrace
google-shopping-api
finder
ipywidgets
tablespace
maven-release-plugin
eclemma
yii2-model
linuxbrew
dnx50
signed
html-escape-characters
configurable-product
zend-mail
aho-corasick
webautomation
stripe.net
mod-perl
code39
vlab
san
mute
revmob
tnt4j
jquery-cycle
gprof
tridion-2011
semantic-merge
chronometer
sfinae
coordinate
word-frequency
pageheap
trialware
nsfont
wcf-callbacks
gwt-celltable
qtextbrowser
glassfish-esb
fork-join
uipasteboard
mongrel2
aggregator
facebook-fbml
tso
autobench
isapi-redirect
code-camp

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile