NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page Simple PHP Form Issue

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 10-30-2005, 02:29 PM THREAD STARTER               #1 (permalink)
NamePros Regular
 
buddybuddha's Avatar
Join Date: May 2005
Location: PA
Posts: 216
buddybuddha is an unknown quantity at this point
 



Simple PHP Form Issue


This situation is probably fueled by my intense lack of knowledge of php.

But I have a script being called by:

read.php?blog=mainBlog;id=1

The script contains only the following code.

Code:
<?

$blog = $_GET['blog'];

echo $blog;

?>
Why does it return 'mainBlog;id=1' and not 'mainBlog'?

Thanks.
buddybuddha is offline  
Old 10-30-2005, 03:05 PM   #2 (permalink)
DNOA Member
Join Date: May 2004
Posts: 5,040
mholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant future
 


Autism Marrow Donor Program 9/11/01 :: Never Forget Multiple Sclerosis Adoption Alzheimer's Lou Gehrig's Disease (ALS)
On most servers, & seperates two variables, not ;

However, GET is an array, so it's only showing the first element in the array (i.e. the first variable.)
mholt is offline  
Old 10-30-2005, 03:09 PM THREAD STARTER               #3 (permalink)
NamePros Regular
 
buddybuddha's Avatar
Join Date: May 2005
Location: PA
Posts: 216
buddybuddha is an unknown quantity at this point
 



thanks changing ; to & solved it!
buddybuddha is offline  
Old 10-30-2005, 03:53 PM   #4 (permalink)
DNOA Member
Join Date: May 2004
Posts: 5,040
mholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant future
 


Autism Marrow Donor Program 9/11/01 :: Never Forget Multiple Sclerosis Adoption Alzheimer's Lou Gehrig's Disease (ALS)
Ah okay good. Lol Ignore the second part of my reply
mholt is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to know referrer on a form POST submission? mholt Programming 2 10-29-2005 02:33 PM
Simple gz compression GeorgeB CODE 3 07-01-2005 11:56 AM

Liquid Web Smart Servers  
All times are GMT -7. The time now is 10:32 PM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger