Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 08-24-2003, 09:06 AM   #1
jovigirl
Confirmed User
 
jovigirl's Avatar
 
Join Date: Apr 2003
Location: On the edge
Posts: 1,796
anyone can help with an easy form method = get script?

This is a code to generate sponsor hosted galleries
The output should be just like this
http://mydomain.com/hosted.php?codenumber

but it happens to be like this instead

http://mydomain.com/hosted.php?code=codenumber&submite=generate+links


Here is the form code.
It must be very simple but I just cant figure it out.
PHP Code:
<form>
<
name="code" action="http://mydomain.com/hosted.php?" method="get">
Enter Your Affiliate Code To auto generate links:  <br>           
<
input type="text" name="code" size="8" maxlength="8"/>
<
input type="submit" name="generate links"/>      
</
form
Thanks Guys
__________________
ICQ :333-548-380
jovigirl is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-24-2003, 09:11 AM   #2
jennycards
Confirmed User
 
Join Date: Feb 2002
Location: European Union
Posts: 1,124
I don't fully understand your question, but one thing is for sure: your Form coding is wrong:

Instead of
PHP Code:
<form>
<
name="code" action="http://mydomain.com/hosted.php?" method="get"
use
PHP Code:
<form name="code" action="http://mydomain.com/hosted.php?" method="get"
jennycards is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-24-2003, 09:16 AM   #3
SMG
Confirmed User
 
Join Date: Aug 2003
Posts: 1,798
lemme go find my magnifying glass maybe I can look
__________________
TGP Webmasters: sign up for the top 100 tgp list!
Submit galleries
If you add me to icq (title) make sure to mention GFY or I'll think you're a bot and deny you.
SMG is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-24-2003, 09:20 AM   #4
jovigirl
Confirmed User
 
jovigirl's Avatar
 
Join Date: Apr 2003
Location: On the edge
Posts: 1,796
That's ok in the original code
I just want to add a number to an url via an input box
nothing but the number
but the from adds a lot of crap like code=XXXX & input= generate
I want it to be php?XXXXXX
not php?code=XXXX & input= generate
__________________
ICQ :333-548-380
jovigirl is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-24-2003, 09:21 AM   #5
jovigirl
Confirmed User
 
jovigirl's Avatar
 
Join Date: Apr 2003
Location: On the edge
Posts: 1,796
Quote:
Originally posted by SMG
lemme go find my magnifying glass maybe I can look
sorry that's the only way to post it here
__________________
ICQ :333-548-380
jovigirl is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-24-2003, 09:23 AM   #6
Libertine
sex dwarf
 
Libertine's Avatar
 
Join Date: May 2002
Posts: 17,860
PHP Code:
<form name="code" action="http://mydomain.com/hosted.php" method="get">
Enter Your Affiliate Code To auto generate links:             
<
input type="text" name="code" size="8" maxlength="8"/>
<
input type="submit" value="generate links"/>      
</
form
__________________
/(bb|[^b]{2})/
Libertine is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-24-2003, 09:26 AM   #7
cash69
So Fucking Banned
 
Join Date: Oct 2002
Location: chandler, az
Posts: 1,052
i think if you change it from GET to POST it doesnt add that extra shit..
cash69 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-24-2003, 09:41 AM   #8
Libertine
sex dwarf
 
Libertine's Avatar
 
Join Date: May 2002
Posts: 17,860
Ehm... you wanted it like http://www.mydomain.com/hosted.php?666 instead of http://www.mydomain.com/hosted.php?code=666 ?

Then use this:

PHP Code:
<form name="code">
<
form name="code">
Enter Your Affiliate Code To auto generate links:             
<
input type="text" name="code" size="8" maxlength="8"/>
<
input type="submit" value="generate links" onclick="var url = 'http://www.mydomain.com/hosted.php?' + this.form.code.value; window.open(url);">      
</
form
__________________
/(bb|[^b]{2})/
Libertine is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-24-2003, 09:53 AM   #9
jovigirl
Confirmed User
 
jovigirl's Avatar
 
Join Date: Apr 2003
Location: On the edge
Posts: 1,796
Thanks I solved it
Thanks Punkworld I ll keep your code in a safe place
__________________
ICQ :333-548-380
jovigirl is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.