It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming PHP and MySQL Forum

Use a URL Parameter to fill a field in a form on the next pa

Moderator: Malcolm

Use a URL Parameter to fill a field in a form on the next pa

Postby thedrumguy on Sun Jul 17, 2011 10:25 pm

(Using Dreamweaver CS5)
Ok, say I have a page one.php that shows a bunch of products. Each product has a link that goes to two.php?name=(the product's name). Is it possible to use the parameter "name=(the product's name)" to fill in a text field on two.php? If you could tell me what to do in Dreamweaver for future reference that'd be greatly appreciated! Thanks! :D
thedrumguy
 
Posts: 5
Joined: Tue Mar 23, 2010 2:44 pm

Re: Use a URL Parameter to fill a field in a form on the next pa

Postby rajmv on Sun Jul 24, 2011 3:41 pm

I don't know about dreamweaver, but you'd pass it like so in php;

echo '<textarea id="someid">'.$_REQUEST['name'].'</textarea>';


or


<textarea id="someid"><?php echo $_REQUEST['name']?></textarea>
rajmv
100+ Club
 
Posts: 103
Joined: Thu Jul 14, 2011 7:22 am


Who is online

Users browsing this forum: No registered users and 1 guest