php - Autofill form when link is pressed -


i can't find answers question, because don't know i'm asking.. hoped here understand problem! :)

i have webpage. has page called "services.php". have several buttons (made of classes), belong different "package" prices offer.

i want links "select" autofill form in page, or alternativly in popup form in page.. don't know how explain it, short possible:
when link pressed autofill form (in or other page) type of package chose. text autofill

hope understand i'm asking for! :)

thank you, thank you, thank you! ^^

what seem asking 'loading' page pre-filled specific information, can number of ways, either utilizing javascript (like jquery instance). or using php, make links pass variables (say flag or reference pre-fill fields -- if want popup or next page, etc).

your url like following button user presses (button simple http link):

http://mywebsite.com/prefill.php?user=bob&package=2

this have values bob user requests (you can reference id user info here well), , package=2 designate package options.

then on prefill.php page, have checks for:

$user = $_get['user']; $package = $_get['package']; 

hope helps


Comments

Popular posts from this blog

Add email recipient to all new Trac tickets -

400 Bad Request on Apache/PHP AddHandler wrapper -

php - Change action and image src url's with jQuery -