Jump to content

Recommended Posts

Hey um I need help with my page:

http://www.milesotile.ca/rekkia/createre.php

 

Okay well I got that part down, but I have a few errors and I dont know how to fix it, such as well I want a user to pick a pet out from a bunch which are on that page (currently 2) then it will bring them to a new page where it will look like this:

http://www.milesotile.ca/rekkia/Makemelooklikethis.php

(This is done in html only)

The problem is I dont know much about rado buttons and how to rasmit from one half of the script to the next. Hopefully someone can help me with this problem I would appericate it alot.

 

 

-Thanks for reading

Link to comment
https://forums.phpfreaks.com/topic/52511-can-someone-please-help/
Share on other sites

First off, to get the information you need on the second page FROM the first, use it as a form. (Which I'm assuming you have already done.) Just make sure you include, name="whatever", inside the option tags. (To go along with value= and such.) Then on the next page you can just use $_POST['dragon'] or whatever.

 

A good way to tell the browser which options to show. (Like if they chose dragon, show dragon colors. Or if they chose the other thing, show those colors) You could put all of that script inside of an 'if' statement. So name the option of pet choosing 'pet' or something (on the original page). Then have the script on the second page say something like

 

<?php
if ($_POST['pet'] == "dragon")
    {
    show dragon form
    } else {
    show other thing
    }
?>

 

Hope this helped. I am still yet a newb. =/

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.