Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Addons and Modifications > Mys v1.1.x Mods

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 12-26-2009, 12:15 PM
bokkun bokkun is offline
Premium Member
 
Join Date: Dec 2009
Posts: 8
Gender: Male
Credits: 5,841
bokkun
Default RE: Giving pets a Gender

Quote:
Originally Posted by SieghartZeke
Quote:
Originally Posted by tommyk1210
instead of your random number to select gender code, try this:

PHP Code:
<form id="form1" name="form1" method="post" action="">
  <
p>
    <
label>
    
Male:</label>
    <
label>
      <
input type="radio" name="Genderselect" value="male" id="Genderselect_0" />
    </
label>
    <
br />
    <
label>
    
Female:</label>
    <
label>
      <
input type="radio" name="Genderselect" value="female" id="Genderselect_1" />
    </
label>
    <
br />
  </
p>
</
form>

$gender $_GET[genderselect]; 
When i have puted this code in my page,i have get a error!
Why?
Sorry to meddle, but I know the problem
in that script you have things like this:
form id="form1"
"" shouldn't be used in this situation, replace all " with ' in that code
and $gender = $_GET[genderselect]; should be in doadopt.php

instead of that code try doing it this way:
go to adopt.php
look for the (original)
<form name='form1' method='get' action='doadopt.php'>
part and replace all between that and </form> with
PHP Code:
  <p>Adoptable Name
    <
input name='name' type='text' id='name'>
    <
input name='id' type='hidden' id='id' value='".$id."'>
    <
input name='promocode' type='hidden' id='promocode' value='".$promocode."'>
  </
p>
  <
p>
    <
label>
    
Male:</label>
    <
label>
      <
input type='radio' name='genderselect' value='male' id='genderselect' />
    </
label>
    <
label>
    
Female:</label>
    <
label>
      <
input type='radio' name='genderselect' value='female' id='genderselect' />
    </
label>
    <
br />
  </
p>
  <
p>
    <
input type='submit' name='Submit' value='Adopt Me'>
</
p
then go to doadopt.php
find where you had the random gender choose thing and replace it with
PHP Code:
//The gender mod
$gender $_GET[genderselect]; 
hope I helped you
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mys v1.3.4 Know Gender of New Pets Before Naming Kyttias Mys v1.3.x Mods 4 08-04-2018 01:13 AM
Mys v1.3.x Giftbox Mod (Randomly appearing, currency giving~) Kyttias Mys v1.3.x Mods 14 06-23-2017 07:08 AM
Show Gender while Naming Pet & Name Promo Code Pets Kyttias Questions and Supports 5 07-11-2014 02:12 PM
Gender superdude44 Questions and Supports 5 07-11-2013 01:17 AM
Gender? [answered] Arianna Questions and Supports 4 11-19-2009 06:33 AM


All times are GMT -5. The time now is 08:26 AM.

Currently Active Users: 2583 (0 members and 2583 guests)
Threads: 4,081, Posts: 32,032, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636