![]() |
php /form question
i want to create a link to
www.southernentawards.com/vote.php that when they click some of the forms will already have text in em what is the URL to do this i've seen it before it uses like the formfield names i want filed and with what text thnx |
please help me
|
You can just use something like
extract($_GET); then in the value fields of your html code put <?=$passed_field;?> That is if I'm understanding you properly. |
Hmm dont think we are on the same level
here is the code for for Internet radio personality of the year Code:
<input type="text" id="internetradio_y" name="internetradio_y" value=""and when they click that link it has the internet radio persnality of the year field already filled in with my "text to put in field" quote remember this is NOT my site so i cant edit anything server side was wondering if there was away to just pass info along thru the URL to the form fields |
yeah, what modF said.
|
Quote:
|
Quote:
the name is the variable so southernentawards.com/vote.php?id=internetradio should be southernentawards.com/vote.php?internetradio=stuff <input type="text" id="internetradio_y" name="internetradio_y" value="stuff"> |
Quote:
but i dont own that site so i cant change it just tryin to save some people some time in filling out the form and they can just click and get a pre filled out option |
|
you the man smokey
|
whoops i put the wrong textbox , fixed now , should be ready to go, and it works too.
|
yup tested it ;-D bad ass
|
yup tested it ;-D bad ass
|
holy fucking gfy gerbals
|
I'm sorry but I am confused as to how someone can even exist in this industry without knowing how to pass a variable. How can you operate on a day to day basis not knowing what the very first example in most php books is?
I'm not saying everyone needs to be a professional programmer, but come on. |
Quote:
I have never claimed to be a programmer my any means :) not knowing it cost me more sure but i really dont need it |
Quote:
I was kind of thinking the same thing. It really helps your position greatly to know some of this basic stuff. I have a few "starters" who are still asking dumb html questions even. |
every programmer had experienced this kind of situation... especially when you're just a newbie... asking question is the best way to learn... but for me i google it...
|
| All times are GMT -7. The time now is 05:24 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123