Jump to content

Mantis_61

Members
  • Posts

    10
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Mantis_61's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. well I found other methods just requires more typing. I'd still like to know why my post elements aren't storing.
  2. I have the extra q marks and brackets prepending for a sql statement but it still isn't storing my values from the form? and I know I got typos up there it isn't the original script but the original gives no errors. I was just wanting to know if I do store these values from the post array into variables and include that file will it work? I'm trying to send data from a form to 2 different form processors. Is there another method to do this? 
  3. I'm sorry I didn't quite complete that. That does print there but when I include process.php in with other php files and attempt to echo the variable it does not display the input.
  4. haven't looked at all your code yet but first test your database selection. I had the same problem and found my code was good but my priviliges were bad. MySQL will deny priviliges if your host and or db and table privs aren't specific. there are other ones that will load first. ie. annonymous. especially if there are more than one account with the same name.
  5. I've noticed when I send form requests to a file that stores the form input into variables I cannot use include this file with other files. Why is that? Can I not store the input into variables? [code] <?php echo <<<end <form action=".../process.php" method="post"> <select name="type"> <option value="a">A</option> <option value=a+">A pos</option> </select> </form> end; ?>[/code] process... [code] <?php $type = "{$_POST['type']}"; echo $type; ?>[/code] however when I use an isset() it returns true? Is this due to the state or security?
  6. I guess that explains that. I was trying to use it for an easier type up vs. using html. As far as my computer background that goes back about 2 years of on and off recreational reading. Still venturing out to the older stuff and the UNIX basis for reference. Thanks for the answer. 
  7. Hello readers, I don't know if anyone can solve this without sitting behind my machine but I'm tripping over my shoe laces here. This is all so simple but still won't work! my \n to break a line never works. I've tried with print() and echo? I'm using php5.1.1 on Windows and can't figure it out. Is this bad syntax?... echo "let's break \n it down!" I've also tried... echo "lets try this then \r\n STILL NOTHING!" The escape isn't displayed but my line doesn't break either? I've had other weird things cause errors in the past. I've also tried uninstalling and reinstalling the engine as well as the server. Is this an OS or server issue? Sorry for posting something so minor but it has become a problem.
  8. I've edited my line spaces and whitespaces so the line is'nt the same every time but it points to these two every time. I've tried the extra block around $_SERVER as well still same error. function process_form() { echo 'Hello' . $_POST['name'] . '!'; I don't know whats wrong? Not trying to lose focus here but I also have a couple other questions. I might put in new thread. Before I repost stuff I'd like to make sure it isn't already up here since I'm new. I'm helping to make a site that needs to have a Chinese version. Do I actually have to learn Chinese to do this or are there browser settings that can automatically interpret my text strings? I figured I could store the Chinese in variables and call them when a browser setting is detected but how can I get the Chinese? If there is anything on here on the subject could you direct me? If not I'll post this up fresh. Thanks for the aid.
  9. I have no idea. Tried it with the suggested tweaks and same thing. I get this error a lot when the code seems flawless. Maybe it's my server. I don't know what defaults might interfere with this though. The only option I have changed in the past was register globals and variable order. However, everything is set to defaults now. Weird other scripts run fine.
  10. Will someone please show me why I keep getting 't encapsed whitespace error line 20'!!! <?php if (isset($_POST['stage']) && ('process' == $_POST['stage'])) { process_form(); }else{ print_form(); } function print_form() { echo <<<END <form action="$_SERVER[PHP_SELF]" method="POST"> What is your name? <input type="text" name="name"> <input type="hidden" name="stage" value="process"> <input type="submit" value="send this on over."> </form> END; } function process_form() { echo 'Hello' . $_POST['name'] . '!'; } ?> Still trying to learn the language and all I ever seem to get is a steady flow of errors!
×
×
  • 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.