Jump to content


Photo

Como Posso Pegar O Valor De Um Campo Text E Armazenar Em Variável?


  • Faça o login para participar
10 replies to this topic

#1 Ticreca

Ticreca

    Normal

  • Usuários
  • 105 posts
  • Sexo:Masculino

Posted 25/07/2008, 16:45

olá..
gostaria de saber como posso fzr para pegar o valor ki eu digitar no campo de text e armazenar em uma variável para fzr uma busca no bd mysql...
nao consegui ainda....
a variavel fica vazia... encotrei explicações sobre o uso do metodo post para passar para outras paginas... mas naum eh isso ki eu kero...
kero pegar logo depois ki eu digitar no campo..... para fzr a busca na msm pagina...
isso eh possível?!?!?!?!?!?

desde já agradecido...

#2 lwirkk

lwirkk

    Veterano

  • Usuários
  • 1314 posts
  • Sexo:Não informado

Posted 25/07/2008, 17:20

Sim, é possível! =)
Só que isso seria usando "Javascript", ou previamente "Ajax".

No método do PHP somente, seria digitar, clicar no botão de BUSCA e mostrar resultado na página de resultado* .

No método que você quer, é apenar terminar de digitar e passado alguns segundos sem digitar, ele mostraria o resultado da busca logo abaixo, correto?

Movendo para a seção correta, Javascript e metodologias. =)
Posted Image
"Se quiser ser feliz por um dia, vingue-se; se quiser ser feliz por uma vida inteira, perdoe."

Muito Obrigado à todos do fórum, e à toda equipe do fórum! =)

#3 Diego Viana

Diego Viana

    Normal

  • Usuários
  • 84 posts
  • Sexo:Masculino
  • Localidade:Ourinhos-SP

Posted 25/07/2008, 17:41

O lwirkk tem razão, isso é possível sim, só que para fazer isso vc terá que usar Ajax.

#4 Marcivone

Marcivone

    12 Horas

  • Usuários
  • 200 posts
  • Sexo:Masculino
  • Localidade:Redenção-PA

Posted 25/07/2008, 18:14

Com esse código na página do formulário, você receberá a variável na mesma página pelo método POST...

[CODEBOX]
if($_SERVER['REQUEST_METHOD'] == "POST"){

$campo_da_busca = $_POST['busca'];

... Aqui Faz a busca utilizando a variável....

}
[/CODEBOX]

Espero ter ajudado...

Falows

#5 RonsisM

RonsisM

    Super Veterano

  • Usuários
  • 15724 posts
  • Sexo:Masculino
  • Localidade:Plovdiv

Posted 24/09/2017, 18:01

Coupon For Free Combivent Inhaler viagra cialis Precio Cialis Sin Receta

#6 RonsisM

RonsisM

    Super Veterano

  • Usuários
  • 15724 posts
  • Sexo:Masculino
  • Localidade:Plovdiv

Posted 08/10/2017, 11:11

Viagra Y Dialis Generic Viagra Customer Reviews Forum cialis Viagra Generique Site Serieux
Tabletten Viagra Foto Tadalafil Tablets India online pharmacy Where Purchase Flagyl In Virgin Islands Mochte Viagra Ausprobieren Viagra Principio Attivo

#7 RonsisM

RonsisM

    Super Veterano

  • Usuários
  • 15724 posts
  • Sexo:Masculino
  • Localidade:Plovdiv

Posted 22/10/2017, 19:03

Viagra Opinione Propecia O Cegaba Buy Alli Refill Pills Online viagra online prescription Levitra Ohne Kreditkarte
Cheap Lasix Buy viagra Viagra E Fumo
Baclofene Ou Le Trouver Zitromax On Line Healthy Man Radio Ads bayer generic generic levitra 100mg Viagra Et Insuffisance Cardiaque Viagra Bestellen Gratis Lisinopril

#8 iapedlok

iapedlok

    Expert

  • Usuários
  • 538 posts
  • Sexo:Feminino
  • Localidade:Balaclava

Posted 23/10/2017, 01:22

Discounts! best hgh products progect13.jpg Products which fall under this return policy can be returned domestically, as long as they are unused and in the original packaging. No questions asked! If a product that falls under this guarantee is found to be counterfeit, you will get a full refund (shipping costs included). buy.png READ MORE (A pair) 30CM Kawaii Teddy Bear Plush Toy Stuffed Couple Bears Soft Kids Toys Baby Huggable Dolls Children Girls New Year Gifts ( 18.56 $)Brazilian Virgin Hair With Closure Deep Wave With Closure Queen Hair Products Human Hair With Closure Bundles With Closure ( 66.00 $)Montenegru, FernandaNew les1980 les lesbian undershirt tomboy breathable buckle short chest binder summer t cos bra vest ( 7.77 $)Hot sale portable outdoor picnic foldable gas burner camping mini ultralight steel stoves burners outdoor equipments ( 5.36 $)7a silky straight glueless human hair wigs virgin brazilian hair full lace wig & lace front wig for black women human hair wigs ( 76.00 $)Wireless ios android app sos voice quad-band gsm alarm system intelligent control system built-in speaker with smoke detector ( 107.99 $)7a virgin Mongolian afro kinky curly hair 3 Pcslot, cheap afro kinky human hair rosa hair products curly virgin hair bundles ( 80.44 $)UMI TOUCH 4G Phablet-155.75 $Wholesale amaze burgundy ombre african box hair braiding expression kanekalon jumbo braid hair extension 24 ( 32.80 $)Idti svoim putyomArduino Compatible TTL Output Signal Hunting Sensor Sensor for Arduino Boards ( $1.96 )Brand 5 Star Matte Liquid lipstick Lip Gloss Makeup Waterproof Long Lasting Lipgloss Make up Cosmetics ( 1.40 $)Zig zag woven silk narrow tie ( 40.89 $) Laura BiagiottiBaby Girl Sterling Charm Bracelet ( 105.00 $) 98bb.png
Discounts! product web page

progect13.jpg
Products which fall under this return policy can be returned domestically, as long as they are unused and in the original packaging. No questions asked!
If a product that falls under this guarantee is found to be counterfeit, you will get a full refund (shipping costs included).

buy.png

READ MORE
Qualcomm Certificated QC2.0 Dual USB Car Charger Adapter ( $3.46 )
Ishod (film, 1960)
Mens Gray Croco Stamped Patent Leather Belt ( 92.00 $)
Mini Outdoor Survival Tool EDC Gear Folding Knife Money Cash Clip Camping Equipment Military Self Defense Trinket Multitool ( 4.85 $)
Cheap Malaysian Virgin Curly Hair With Closure 4 Bundles Kinky Curly Virgin Hair With Closure Human Hair Weave With Closure ( 102.00 $)
9 dekabrya
Linda Hant
Original Xiaomi Mi Power Bank 20000mAh New Portable Mobile Power Bank MI Charger 20000mAh Dual USB For Phone,Netbook ( 43.99 $)
6pcslot creative bullets whiskey stainless stones whisky ice cooler for whiskey beer bar household wedding gift favor christmas ( 11.89 $)
Zaklyuchenie
New style retro minimalist crossbody bag fashion small women shoulder bag tassel women messenger bag ( 21.80 $)
All Star Hi Neon Crimson Canvas Sneaker ( 49.50 $)
2016 New Luxurry Brand Car Key Wallet Purse Men Women Woolen Felt Keychain Holder Pocket Keys Organizer Pouch Case Bag ( 6.71 $)
New 2016 gs8000 full hd 1080p 2.7 ( 30.70 $)
Brazilian Virgin Hair Straight 7A Unprocessed Virgin Hair Weft Cheap Brazilian Hair 4Bundles Human Hair Extensions Can Be Curled ( 42.00 $)


33bb.jpg
Discounts! hair mousse for men

progect13.jpg
Products which fall under this return policy can be returned domestically, as long as they are unused and in the original packaging. No questions asked!
If a product that falls under this guarantee is found to be counterfeit, you will get a full refund (shipping costs included).

buy.png

READ MORE
Glison, Dzhejms
1440pcslot 1.3mm Multicolor Nail Art Rhinestones Micro Nail Rhinestones Mini Nail Art Decorations Manicure Accessories ( 3.00 $)
DOOGEE X5 MAX 3G Smartphone-78.09 $
Raspberry Wool and Cashmere Fringed Stole ( 42.00 $)
Pharmacies in Moscow - IFK network of pharmacies. The medication at home and in the office. The order and delivery in Moscow and Russia. Online ordering of drugs through Internet pharmacy. Pharmacy-online. Delivery service of medicines. Drugstore on duty online
Peruvian virgin hair straight 3 bundles 7a virgin peruvian straight hair bundles human hair weave peruvian straight virgin hair ( 45.00 $)
Universal diesel petrol gasoline 12v electric fuel pump HEP-02A low pressure For most car Carburetor Motorcycle ATV ( 10.45 $)
Internet-shop of digital technology Player.ru: cameras, cell phones, navigators and accessories.
Car DVR Camera Video Recorder Universal Hidden DVRs Dashcam Novatek 96658 Wireless WiFi APP Manipulation Full HD 1080p Dash Cam ( 85.70 $)
Lyumet, Sidni
OGOGO Obstanovochka! Online store of furniture and interior products
Women bag luxury leather purse and handbags fashion famous brands designer handbag high quality female shoulder bag sac a main ( 72.00 $)
«Ne travi mne dushu, ne travi…»
F68 Smart Sports Watch-26.87 $
Handbags men women waterproof chest pouch bag shoulder sling bag nylon cross body bags 2016 new free ship ( 28.88 $)


97bb.png

#9 RonsisM

RonsisM

    Super Veterano

  • Usuários
  • 15724 posts
  • Sexo:Masculino
  • Localidade:Plovdiv

Posted 04/11/2017, 22:19

Free Levitra.Com Osu Cialis Generico Italia Buy Antabuse Disulfiram viagra Cheapest Tadalis Sx Price Cialis Generico 5 Mg Prezzo Traductor Propecia
Viagra Generique Livraison Rapide how to get a free trial of levitra How Long Does Viagra Last Cialis Per Donna Cheap Antabuse

#10 RonsisM

RonsisM

    Super Veterano

  • Usuários
  • 15724 posts
  • Sexo:Masculino
  • Localidade:Plovdiv

Posted 27/11/2017, 14:50

Propecia Nizoral Pattern Baldness Acheter Cialis Uk Parcopa buy viagra online Zithromax Cats
Cialis Comparatif Prix Viagra 10mg Buying Viagra100brand Fromcanadaonline canadian pharmacy levitra Propecia Merck Farma Peligroso Tomar Propecia
Amoxicillin Dosage For A Kitten Knee Infection Keflex Cialis 100mg viagra online pharmacy Venta De Viagra Por Internet Costo Cialis In Farmacia

#11 HaroNism

HaroNism

    Super Veterano

  • Usuários
  • 13822 posts
  • Sexo:Masculino
  • Localidade:San Miguel de Tucuman

Posted 27/11/2017, 23:26

Awc Conadian Pharmacy Promo Code viagra Amoxil Pediatrique Gouttes Acheter Levothyroxine Sodium Buy Uk Viagra O Similari
Priligy Comprar online pharmacy Malegra Zithromax Capsules




0 user(s) are reading this topic

0 membro(s), 0 visitante(s) e 0 membros anônimo(s)

IPB Skin By Virteq