GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   php /form question (https://gfy.com/showthread.php?t=644823)

Chris 08-15-2006 09:42 PM

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

Chris 08-15-2006 09:49 PM

please help me

modF 08-15-2006 09:50 PM

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.

Chris 08-15-2006 09:53 PM

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=""
i want to do something like when the click www.southernentawards.com/vote.php?id=internetradio"text to put in field"

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

mr stabby 08-15-2006 09:54 PM

yeah, what modF said.

modF 08-15-2006 09:57 PM

Quote:

Originally Posted by Chris
Hmm dont think we are on the same level

remember this is NOT my site so i cant edit anything server side

Ahh, well that's a horse of a different color. What you might try to do is setup a form on your site to post to their page. Either that one, or wherever that script posts to. Try filling it out a few times so it has errors to see what happens. If it kicks you back and the fields are already filled in than it should work. They may not even allow or turn on parsing of POST/GET on a voting page, as it is easy to get around.

SmokeyTheBear 08-15-2006 10:01 PM

Quote:

Originally Posted by Chris
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=""
i want to do something like when the click www.southernentawards.com/vote.php?id=internetradio"text to put in field"

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


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">

Chris 08-15-2006 10:06 PM

Quote:

Originally Posted by SmokeyTheBear
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">

yeah i want that kinda url
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

SmokeyTheBear 08-15-2006 10:07 PM

just do this copy paste

http://ytmnd.webspacemania.com/south/

Chris 08-15-2006 10:10 PM

you the man smokey

SmokeyTheBear 08-15-2006 10:10 PM

whoops i put the wrong textbox , fixed now , should be ready to go, and it works too.

Chris 08-15-2006 10:11 PM

yup tested it ;-D bad ass

Chris 08-15-2006 10:11 PM

yup tested it ;-D bad ass

Chris 08-15-2006 10:12 PM

holy fucking gfy gerbals

BradM 08-15-2006 10:22 PM

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.

Chris 08-15-2006 10:27 PM

Quote:

Originally Posted by BradM
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.

bite me myspace boy :D

I have never claimed to be a programmer my any means :)

not knowing it cost me more sure but i really dont need it

heywood 08-15-2006 10:27 PM

Quote:

Originally Posted by BradM
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.


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.

donross 08-15-2006 11:56 PM

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