Jump to content

thomas_xyz

Members
  • Content Count

    22
  • Joined

  • Last visited

Community Reputation

1 Neutral

About thomas_xyz

  • Rank
    Newbie
  1. never mind i fixed itit's the little "\" got in the way after the request.php all i have to do is remove the forward slash just keep the url to thanks a lot for the help everyone!
  2. naturally without syntax it would've look like this
  3. yea that's what i thought too but when i click on the link it shows this
  4. yuphttp://test.dhamilaw.com/?phone=2125551212&code=abc123
  5. oh ok thanks again! where am i suppose to put those strings?
  6. thanks! but here's the other problem. when the second page load, all the graphics, divs, and alignments are missing.. i don't get it
  7. i'm trying to send information to the following page but can't seem to do so. this might be a html problem i build an if (isset($_REQUEST[""])) to have one side link and another form. problem is that for the image link i set up, i can't send value to the following page <?phpif (isset ($_REQUEST['code']))$code=$_REQUEST['code'];$phone=$_REQUEST['phone'];?> <html><head><title></title></head><body> <?php if (isset($_REQUEST['code'])) echo "</br> <a href=\"request.php\?code&&phone"><img src=\"../images/button1.png\" onmouseover=\"this.src=\'../images/button1-hover.png\'\" onmouseout=\"this.src=\'../images/button1.png\'\"/></a>"; else echo "form"?> </body></html> I thought all i have to do is add ?code&&phone to the <a href> tag.. what am i doing wrong Please help. Thank you
  8. well.. you see.. i've also attached another php with a mail() so everything they put in, it will get email to me once they hit submit. the phone number will be given to the sales people. so if i put that in the index, all potential clients have to do is fill out one form to complete the transaction. existing clients will fill out the first form then enter another form to make an appointment
  9. just to avoid starting another topic,let just say i want to add an extra text input for those without $code how will i do so? i mean i would want it to only appear to those that enters the site without $code i've tried adding <?php if($code='') echo ' <input type="text" class="inputbg" name="Tel" id="Tel" onfocus="if (this.value == \'Your Phone Number\') {this.value = '';}" onblur="if (this.value == '') {this.value = \'Your Phone Number\';}" value="Your Phone Number" />'?> but that doesn't seem to work
  10. all is working now. Thanks alot!!
  11. index.php <?phpif (isset ($_REQUEST['Code']));$Code=$_REQUEST['Code'];?><html><head><title></title></head><body><form action="<?php if (isset($_REQUEST['Code'])) echo 'request.php'; else echo 'thankyou.php'; ?>" method="post"><input type="text" class="inputbg" name="FullName" id="FullName" onfocus="if (this.value == 'Your Name') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Your Name';}" value="Your Na<input type="text" class="inputbg" name="Email" id="Email" onfocus="if (this.value == 'Your Email') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Your Email';}" value="Your Email" /> <input type="hidden" name="Code" value="<?php echo $_REQUEST['Code'];?>" /><input type="submit" class="submit" name="submit" value="<?php if (isset($_REQUEST['Code'])) echo 'More Info'; else echo 'Continue';?>" /> </form></body></html> Correct?thankyou.php <?php $FullName=$_REQUEST['FullName']; $Code=$_REQUEST['Code'];$Email=$_REQUEST['Email'];$Phone=$_REQUEST['Phone'];$BestTime=$_REQUEST['BestTime'];$theDate = isset($_REQUEST["date5"]) ? $_REQUEST["date5"] : "";$theDate = date('F-j-Y', strtotime($theDate));?><html><head><title></title></head><body> <?phpif (isset ($_REQUEST['Code'])) echo'<h5>Your Code is: <?=$Code;?>. </h5> <h5> The phone number we had on file is <?=$Phone;?></h5> <h5> You have scheduled a phone call on <?=$theDate;?> ,<?=$BestTime;?> -EST.</h5> </p><p style="color:#ffffff;"> <u> *Selected appointment will adjust accordingly to Eastern Standard Time (-EST).</u></p>';else'An email with a Code will be email to you shortly.'?> </body></html> Correct? btw thank you so much for the help. i'm still very new at this
  12. am i suppose to do this with the <input type="hidden" name="Code" value="<?php if isset($_REQUEST['code'];?>">?
×
×
  • Create New...